Not sure what bareword error you're getting or expecting. I do get a "Use of uninitialized value" warning (as expected), both as a one-liner and as a regular script, and with various versions of Perl (5.10.0 and later).
$ perl -Mstrict -we 'my ($x,$y)=(0,0); if ($x eq my $y) {}' Use of uninitialized value $y in string eq at -e line 1.
In reply to Re: My, what is "my" doing here?
by Eliya
in thread My, what is "my" doing here?
by locked_user sundialsvc4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |