![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: list sliceby bart (Canon) |
on Jul 21, 2006 at 18:25 UTC ( [id://562912]=note: print w/replies, xml ) | Need Help?? |
You were so close. This works:
The basic idea is that to take an indexed item from the result of a function that returns a list, is to wrap the function call in extra parens. Like this:
Alternatively, you can wrap it in an anonymous array, too: The arrow is not optional. So, this will work, too:
In Section
Seekers of Perl Wisdom
|
|