Think about Loose Coupling | |
PerlMonks |
Re: Returning lists vs arraysby broquaint (Abbot) |
on Jan 20, 2003 at 16:38 UTC ( [id://228385]=note: print w/replies, xml ) | Need Help?? |
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
_________
In Section
Seekers of Perl Wisdom
|
|