Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Specify sort method on the fly

by ikegami (Pope)
on Jan 20, 2010 at 23:29 UTC ( #818584=note: print w/ replies, xml ) Need Help??


in reply to Re: Specify sort method on the fly
in thread Specify sort method on the fly

my $sort = { };? my %sort = ( );!


Comment on Re^2: Specify sort method on the fly
Select or Download Code
Re^3: Specify sort method on the fly
by eric256 (Parson) on Jan 21, 2010 at 15:05 UTC

    I tend to use references always, dunno why, habit i suppose. I like the way they look?


    ___________
    Eric Hodges

      I go for references too. Couple of justifications:

      Since I almost always want to pass by reference to avoid copying, and often want to pass in multiple arrays or hashes, having a reference is a good default.
      Not having non-reffed arrays and hashes floating around means more consistency in the use of $ and -> almost everywhere.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2014-12-18 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (49 votes), past polls