sort
- The sort keyword takes a list and returns it sorted by the character ordering. By default, this is ASCII, but it can be changed.
@players = qw( Mario Luigi Toad Princess ); @players_sorted = sort @players; @nums = sort 98..104;
- But not,
sort @players;