Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Need an $a and $b as in perl's sort routine

by simonm (Vicar)
on Jan 11, 2006 at 00:57 UTC ( [id://522362]=note: print w/replies, xml ) Need Help??


in reply to Need an $a and $b as in perl's sort routine

If you only have one implicit target variable, use the variable that's already been set aside for implicit targets -- $_.

It's easy to local $_ before calling the sub, and with $_ everyone will know what you're doing.

  • Comment on Re: Need an $a and $b as in perl's sort routine

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found