Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Sort undef

by LanX (Saint)
on Jun 12, 2017 at 13:35 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found