Attribute-Handlers-Prospective
view release on metacpan or search on metacpan
demo/demo_rawdata.pl view on Meta::CPAN
package UNIVERSAL;
use Attribute::Handlers;
sub Cooked : ATTR(SCALAR) { print "@{$_[4]}\n" }
sub PostRaw : ATTR(SCALAR,RAWDATA) { print $_[4], "\n" }
sub PreRaw : ATTR(SCALAR,RAWDATA) { print $_[4], "\n" }
package main;
my $x : Cooked(1..5);
my $y : PreRaw(1..5);
my $z : PostRaw(1..5);
( run in 0.388 second using v1.01-cache-2.11-cpan-e9199f4ba4c )