in reply to PGA Golf, Round 1 - Results
Hole 6 can be improved by two chars:
sub hole6{sort{$&x$a=~'[aeiuo]'cmp$&x$b=~//}@_}or, alternatively:
sub hole6{sort{$a!~/[aeiuo]/.$&cmp$b!~//.$&}@_}
In Section
Meditations
in reply to PGA Golf, Round 1 - Results
Hole 6 can be improved by two chars:
sub hole6{sort{$&x$a=~'[aeiuo]'cmp$&x$b=~//}@_}or, alternatively:
sub hole6{sort{$a!~/[aeiuo]/.$&cmp$b!~//.$&}@_}