in reply to sorting text arrays and ignoring case

You can convert the array elements to lowercase while comparing them. With
@items=sort { lc($a) cmp lc($b) } (@items);
your code prints:
A a B b C c

Update: sort lists this with uc as example.

Replies are listed 'Best First'.
Re^2: sorting text arrays and ignoring case
by ikegami (Patriarch) on Mar 10, 2006 at 02:27 UTC
    That's not guaranteed to return the mentioned result. How about:
    @items = sort { lc($a) cmp lc($b) || $a cmp $b } @items;