Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / 5.8.0 / Attribute / Handlers / demo / demo_rawdata.pl
CommitLineData
86530b38
AT
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);