in reply to Re: Understanding difference between my and local variables.
in thread Understanding difference between my and local variables.

>perl -E"say scalar( my $x = qw( a b c ) );" c >perl -E"say scalar( my ($x) = qw( a b c ) );" 3

Replies are listed 'Best First'.
Re^3: Understanding difference between my and local variables.
by JavaFan (Canon) on Oct 15, 2010 at 07:56 UTC
    The question wasn't what the difference is between my ($x) = ..." and my $x = ..... The question was what the difference is between my ($x); and my $x;.

      Technically true, but I believe you're wrong in thinking he's going to realize the semi-colon was meaningful (assuming he even remembers that he used a semi-colon).