Move Attribute::Handlers from lib to ext. The layout in ext is the same as the
[p5sagit/p5-mst-13.2.git] / ext / Attribute-Handlers / demo / demo_rawdata.pl
CommitLineData
0e9b9e0c 1package UNIVERSAL;
2use Attribute::Handlers;
3
4sub Cooked : ATTR(SCALAR) { print pop, "\n" }
5sub PostRaw : ATTR(SCALAR,RAWDATA) { print pop, "\n" }
6sub PreRaw : ATTR(SCALAR,RAWDATA) { print pop, "\n" }
7
8package main;
9
10my $x : Cooked(1..5);
11my $y : PreRaw(1..5);
12my $z : PostRaw(1..5);