in reply to Re: Sort undef
in thread Sort undef
This being a simple case, I thought the typical way to do it would be in the form:
sort { (defined($a) <=> defined($b)) || ($a cmp $b) }
In Section
Seekers of Perl Wisdom
in reply to Re: Sort undef
in thread Sort undef
This being a simple case, I thought the typical way to do it would be in the form:
sort { (defined($a) <=> defined($b)) || ($a cmp $b) }