in reply to Strange behaviour with Arrays and print?
Output:perl -E 'my @a=qw(10 20 30); say "@a!"; say @a . "!"'
I always thought that things like "$foo\n" were compile-time shortcuts for $foo . "\n". Apparently not, at least not for arrays...10 20 30! 3!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strange behaviour with Arrays and print?
by AnomalousMonk (Archbishop) on Jul 12, 2014 at 14:06 UTC | |
by Anonymous Monk on Jul 12, 2014 at 14:31 UTC |