There are many utilities in perl that work on arrays or even on lists of values that have not been assigned to an array. Some of these are built in the languages. Others come in a standard module, yet even more of them can be installed from CPAN. Here you'll find a number of these utility functions and pointers where can you get them from.