Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: perl grep

by tcf22 (Priest)
on Nov 22, 2003 at 16:49 UTC ( [id://309173]=note: print w/replies, xml ) Need Help??


in reply to perl grep

It does the equivalent of grep /regex/, @_. => has most of the same properties of a comma.

For example
%hash = (this => 'that', now => 'then');
is equivalent to
%hash = ('this', 'that', 'now', 'then');
You can see how it differs from the comma in the quoting of the keys being optional in most cases. But for most normal uses, its just a funny looking comma.

- Tom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 05:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found