in reply to My favorite looping mechanism in Perl is:
I agree with BBQ: I love foreach, but when I discovered map ... it was love at first sight :) being able to write things like:
is a real pleasure for me!
marcos
@words = ('foo', 'bar', 'and', 'whatelse'); map {print "$_\n"} @words;
is a real pleasure for me!
marcos
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: My favorite looping mechanism in Perl is:
by merlyn (Sage) on May 13, 2000 at 04:30 UTC | |
by marcos (Scribe) on May 15, 2000 at 12:35 UTC | |
by btrott (Parson) on May 15, 2000 at 20:56 UTC | |
RE: RE: My favorite looping mechanism in Perl is:
by ChuckularOne (Prior) on May 10, 2000 at 15:43 UTC | |
by marcos (Scribe) on May 10, 2000 at 20:40 UTC |
In Section
Past Polls