Attribute-Handlers

 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 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);



( run in 0.578 second using v1.01-cache-2.11-cpan-e9199f4ba4c )