diff options
Diffstat (limited to 'lib/Attribute/Handlers/demo/demo_rawdata.pl')
-rwxr-xr-x | lib/Attribute/Handlers/demo/demo_rawdata.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Attribute/Handlers/demo/demo_rawdata.pl b/lib/Attribute/Handlers/demo/demo_rawdata.pl new file mode 100755 index 0000000000..c0754f06a9 --- /dev/null +++ b/lib/Attribute/Handlers/demo/demo_rawdata.pl @@ -0,0 +1,12 @@ +package UNIVERSAL; +use Attribute::Handlers; + +sub Cooked : ATTR(SCALAR) { print pop, "\n" } +sub PostRaw : ATTR(SCALAR,RAWDATA) { print pop, "\n" } +sub PreRaw : ATTR(SCALAR,RAWDATA) { print pop, "\n" } + +package main; + +my $x : Cooked(1..5); +my $y : PreRaw(1..5); +my $z : PostRaw(1..5); |