in reply to Perl nuances: unnamed variable
in thread Creating Perl5 plugin for Intellij IDEA (Camelcade)
Compare @a (better @| ) or %0 ¹
(yes its a design flaw)
Btw please start a new thread instead of just changing the title.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
oops seems like they fixed it for @a
use warnings; use strict; %0 = (a=>1); @| = (1..3); # @a =(1..3); # 'requires explicit package name' if uncommented
see also Scalar followed by parenthetical... and Why did @$ variable bite me in the ass?
And here the reason why @a works as expected
|
|---|