in reply to Re: Re: Re: "foreach" is to "next" as "map" is to ???
in thread "foreach" is to "next" as "map" is to ???
There is no sane way to do the equivalent of this in a map block. You can only choose not to provide the line to the paragraph at the last instruction.for ( @lines ) { next if /^#/; # ... a dozen lines of code push @paragraph, $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "foreach" is to "next" as "map" is to ???
by Abigail-II (Bishop) on May 26, 2004 at 16:53 UTC | |
|
Re: Re: Re: Re: Re: "foreach" is to "next" as "map" is to ???
by sacked (Hermit) on May 26, 2004 at 16:57 UTC |