Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Re: Re: "foreach" is to "next" as "map" is to ???

by sacked (Hermit)
on May 26, 2004 at 16:57 UTC ( [id://356648]=note: print w/replies, xml ) Need Help??


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 ???

You wrote:
There is no sane way to do the equivalent of this in a map block.
@paragraph= map { if( /^#/ ) { () } else { # ... a dozen lines of code $_ } } @lines;

--sacked

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://356648]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-18 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found