in reply to Re^3: what would you like to see in perl5.12?
in thread what would you like to see in perl5.12?
START blocks provide "do once" capability in Perl 6.
Whoa! I will stop complaining like whatever the common English idiom for a recurring, annoying and insisting whiner is.
Would someone care how it would apply to the original (Perl 5) example?
while ( <FH> ) { next if $_ eq 'foo'; # Where foo can only appear once in the file print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: what would you like to see in perl5.12?
by TimToady (Parson) on Aug 21, 2007 at 18:31 UTC |