in reply to criteria based array sorting
If the initial letters are the same case, sort normallyprint sort { if (($a=~/^[a-z]/) == ($b=~/^[a-z]/)) { $a cmp $b } else { $b cmp $a } } @needs_sorting;
Further update: I liked Broquaint's way of checking initial case.
|
|---|