in reply to Re: 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.
Of course there is.
map { !/^#/ ? () : do { # ... a dozen lines of code } } @lines

Abigail