Upgrade to Attribute::Handlers 0.70.
[p5sagit/p5-mst-13.2.git] / lib / Attribute / Handlers / demo / demo_rawdata.pl
CommitLineData
04070b92 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);