|The stupid question is the question not asked|
Dereferencing and context?by Not_a_Number (Prior)
|on Feb 08, 2004 at 18:08 UTC||Need Help??|
Not_a_Number has asked for the
wisdom of the Perl Monks concerning the following question:
I would have expected the following two snippets to have the same output:
But the output from the first is:abcde01234
while that from the second is:55
Presumably, the concatenation operator is imposing scalar context in the second case (it's like if I'd done:$str .= $_ for scalar @ary1, scalar @ary2;
in the first bit).
Wherein lies the difference?