in reply to Declaring my $var versus declaring my($var)

The following message is a combination of the output of
$ perl -MO=Deparse -wle 'my ($a) = 1;my $b = 2; (my $c) = 3;my ($d, $e +) = (4, 5); (my $f, my $g) = (6, 7); (my($h, $i) = (8, 9));my $j; my +($k);' $ perl -MO=Concise -wle 'my ($a) = 1;my $b = 2; (my $c) = 3;my ($d, $e +) = (4, 5); (my $f, my $g) = (6, 7); (my($h, $i) = (8, 9));my $j; my +($k);'

Summary:

Updated: updated to include my $j; and my ($k);

Replies are listed 'Best First'.
Re^2: Declaring my $var versus declaring my($var)
by dh1760 (Acolyte) on Jun 10, 2011 at 14:36 UTC
    This is fascinating, thanks for the pointer to Deparse and Concise!

    --
    DaveH (dh1760)