in reply to Re^2: difference between @array."\n" and @array "\n"
in thread difference between @array."\n" and @array "\n"
"stringifies @array"? No!
It stringifies the result of @array.
To be fair, "stringifies @array" could mean "stringifies the result of @array", but most people think of "@array" as a variable rather than code. Clarity is definitely lacking.
The concat operator evaluates its operands in scalar context, to which @a responds by returning the number 3. The concat operator then stringifies that value.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: difference between @array."\n" and @array "\n"
by LanX (Saint) on Aug 27, 2009 at 22:17 UTC |