in reply to
Getting single element from an array
The ( in the second case is taken by the parser as starting the argument list. When the
[
is being parsed, it is already too late to change mind. You can use + to disambiguate:
print +("adf","ff","f")[1];
[download]
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Comment on
Re: Getting single element from an array
Select
or
Download
Code
In Section
Seekers of Perl Wisdom