Keep It Simple, Stupid | |
PerlMonks |
Re: XML::Twig Question (sorta)by ikegami (Patriarch) |
on Mar 28, 2009 at 19:12 UTC ( [id://753889]=note: print w/replies, xml ) | Need Help?? |
Anno is quite right. Here's a quick explanation. When you call a subroutine, the arguments are flattened into a list.
For this reason, an array reference is usually passed instead of the contents of the array.
In your case, it would be
Anno provided an alternative solution.
In Section
Seekers of Perl Wisdom
|
|