The traditional technique to make sort ignore case is to pass strings to lc or uc for comparison:
@sorted = sort { lc($a) cmp lc($b) } @list;
This works on all versions of Perl 5 and is completely sufficient for English; it doesn't matter whether you use uc or lc. However, it presents a problem ...