Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Vexing views of variables

by QM (Parson)
on Aug 07, 2009 at 18:43 UTC ( #786880=note: print w/replies, xml ) Need Help??


in reply to Vexing views of variables

Perhaps irrelevant, but $a and $b are special for sort, and should never be used elsewhere, unless you are expecting sort to call the sub.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: Vexing views of variables
by JadeNB (Chaplain) on Aug 07, 2009 at 18:51 UTC
    I think that lexical $a and $b are still OK (and have no significance to sort), but you're right that they're sub-optimal choices of names. I've changed it—thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://786880]
help
Chatterbox?
[holli]: i saw that thread and figured it`s OPP value too high. i didnt realise its PM code
[LanX]: its the style attribute, I can't show you pm code, can only link to old everything docs of you want
[holli]: i'd like to keep my sanity, tyvm
[holli]: at least what's left off it :)
[LanX]: the+everything+ bible

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2017-11-20 21:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (294 votes). Check out past polls.

    Notices?