in reply to Re: "foreach" is to "next" as "map" is to ???
in thread "foreach" is to "next" as "map" is to ???
This IMO would be insane for a map block. I stand corrected on the ternary/empty list/do block being functionally equivalent though in sacked's original example there was no do block.# contrived example my @paragraph; for ( @lines ) { next if /^#/; $_ = lc $_; $_ =~ tr/ -~//cd; next if /foobar/; $_ =~ s/administration/admin/g; next if length $_ > 60; push @paragraph, $_; }
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "foreach" is to "next" as "map" is to ???
by Abigail-II (Bishop) on May 26, 2004 at 17:23 UTC | |
by Limbic~Region (Chancellor) on May 26, 2004 at 17:30 UTC | |
|
Re: Re: Re: "foreach" is to "next" as "map" is to ???
by diotalevi (Canon) on May 26, 2004 at 17:22 UTC |