in reply to Returning lists vs arrays
Given an array what is the best way to return it as a list?When you return an array from a function (assuming list context) you are in fact returning a list. See tilly's definitive node Arrays are not lists for a good explanation on arrays and how they relate to lists (and vice versa).
HTH
_________
broquaint
In Section
Seekers of Perl Wisdom