good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
In my code I will usually return arrayrefs. Occasionally I
will return an array. I can't remember ever returning
a list.
This seems sensible and also normal practice,
except for core perl funcs that are advertised to return
lists.
Given an array what is the best way to return it as a list? Other than punning existing functions are there good reasons to return a list instead of an array? In reply to Returning lists vs arrays by rir
|
|