Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Sort undef

by Discipulus (Abbot)
on Jun 11, 2017 at 23:19 UTC ( #1192549=note: print w/replies, xml ) Need Help??


in reply to Sort undef

If sort works like this you can modify the returned array:  push @$ResultsFinal, shift @$ResultsFinal;

If have many of them you can also  push @$ResultsFinal, shift @$ResultsFinal until $$ResultsFinal[0];

PS or in the case undef has to be discarded you can @$ResultsFinal = ( sort {  ...  } grep {defined} @$ResultsFinal );

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2022-01-24 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?