- Timestamp:
- 10/10/08 18:43:06 (6 weeks ago)
- Files:
-
- 1 modified
-
src/perl6/viv (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/perl6/viv
r22565 r22567 13 13 $::ACTIONS = 'Actions'; 14 14 my $OPT_pos = 0; 15 my $OPT_match = 0; 15 16 16 17 sub MAIN { … … 29 30 } 30 31 elsif ($switch eq '--pos') { 31 $OPT_pos = 1; 32 $OPT_pos = 1; # attach position and prior ws len 33 } 34 elsif ($switch eq '--match') { 35 $OPT_match = 1; # attach match object 32 36 } 33 37 } … … 63 67 gen_class($class); 64 68 bless $r, $class unless ref($r) =~ /^VAST/; 69 $r->{MATCH} = $match if $OPT_match; 65 70 $match->{''} = $r; 66 71 }
