Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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

by simonm (Vicar)
on Jan 11, 2006 at 00:57 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-11-25 02:09 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (667 votes), past polls