in reply to Re^2: .. operator and not including the condition of right operand
in thread .. operator and not including the condition of right operand
(Untested)my $good; for (@aap) { my ($type, $value) = /^(\d)(.*)/ or next; if ( $type == 0 ) { $good = 0; next; } elsif ($type == 1) { $good = 1; } next unless $good; print "$value\n"; }
The Perfect is the Enemy of the Good.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: .. operator and not including the condition of right operand
by halley (Prior) on Apr 27, 2005 at 19:46 UTC |