Just another Perl shrine | |
PerlMonks |
Re^2: Trying to capture a value from a list of valuesby Not_a_Number (Prior) |
on Sep 02, 2015 at 13:19 UTC ( [id://1140791]=note: print w/replies, xml ) | Need Help?? |
my $lnxsrvrs = "@mylnxsrvrs"; Actually, it won't. Since @mylnxsrvrs is in double quotes, the contents of the array are concatenated and stringified, and this string is assigned to $lnxsrvrs. Consider:
Output: un deux troisHow the OP (thinks they) got an output of 1 remains a mystery...
In Section
Seekers of Perl Wisdom
|
|