Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Sort undef

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

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use Data::Dump;
    ...
    @result = sort cmp_undef2 @array;
    
    dd \@result;
    
  2. or download this
    ["", "", "", "a", "b", "c", undef, undef, undef]
    ["", "", "", "a", "b", "c", undef, undef, undef]
    
  3. or download this
      DB<1> p "" eq undef
    1
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-08-12 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?