blob: 4254305b4ffedfe707a87d0d1cbdc594812ad7ce (
plain)
1
2
3
4
5
6
|
@S = (0, 1, 2, 3);
for ("A", "D", "b", "c") { $foo{$i++} = $_; }
# for (sort { lc($foo{$a}) cmp lc($foo{$b}) } @S) { print $foo{$_}, "\n"; }
for (sort Alpha @S) { print $foo{$_}, "\n"; }
sub Alpha { lc($foo{$a}) cmp lc($foo{$b}); }
|