Do you know where your variables are? | |
PerlMonks |
Re: [Solved] Pick a single item from a sub's return listby Not_a_Number (Prior) |
on Oct 31, 2015 at 12:16 UTC ( [id://1146572]=note: print w/replies, xml ) | Need Help?? |
Alternatively, return a reference:
Update: In fact, if the sub is declared before it's called (as above), the call can be simplified to: say givelist->[ 2 ];
In Section
Seekers of Perl Wisdom
|
|