(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.
In reply to Re^3: .. operator and not including the condition of right operand
by dragonchild
in thread .. operator and not including the condition of right operand
by eXile
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |