Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Sort undef

by LanX (Sage)
on Jun 12, 2017 at 16:29 UTC ( #1192617=note: print w/replies, xml ) Need Help??


in reply to Re^2: Sort undef
in thread Sort undef

Nice! I was worried that <=> can't handle "" without warnings, but that's not the case here. :)

(empty string is the false value returned from defined(undef) )

EDIT

Forget it, I'm getting old ... false is a dual var which resolves to 0 in numeric context.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1192617]
help
Chatterbox?
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: (3)
As of 2021-12-02 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (17 votes). Check out past polls.

    Notices?