Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: lsearch for perl?

by ikegami (Patriarch)
on Dec 06, 2005 at 15:33 UTC ( [id://514496]=note: print w/replies, xml ) Need Help??


in reply to Re^2: lsearch for perl?
in thread lsearch for perl?

Things like this aren't in the man-page

grep accepts any code in the block. It doesn't have to be a regex. grep is useful for filtering out items from a list, while map is useful for transforming a list.

The idea of using grep on a list without naming _that_ list as the argument to grep would never have occurred to me.

It's an concept I picked up on PerlMonks too :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found