The stupid question is the question not asked | |
PerlMonks |
Re: Nth position of array determind by <>by LanX (Saint) |
on Apr 23, 2016 at 11:03 UTC ( [id://1161304]=note: print w/replies, xml ) | Need Help?? |
The shortest way is
(split(' ', $numbers))[$input]
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|