Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: sort and undef

by gjb (Vicar)
on Dec 12, 2005 at 13:44 UTC ( #516011=note: print w/replies, xml ) Need Help??


in reply to sort and undef

You can always supply your own sort criterium in the form of a piece of code with the variables $a and $b that such that undef is larger than any other value. For more information, see the sort() docs.

Hope this helps, -gjb-

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://516011]
help
Chatterbox?
[perldigious]: Quick question, is undef %hash a recommended/good way to delete an entire hash structure from memory? Or sould I be doing it some other way?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-07-21 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (335 votes). Check out past polls.