my @unsorted = qw/Maggie Bart Lisa Homer Marge/; my @sorted = sort @unsorted;
To sort case-insensitively, just change the second line to this:
my @sorted = sort { lc($a) cmp lc($b) } @unsorted;
See sort for a complete explanation.
In reply to Answer: How do you alphabetize an array? by davido
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |