|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Declaring my $var versus declaring my($var)by ikegami (Patriarch) |
| on Jun 10, 2011 at 14:48 UTC ( [id://909144]=note: print w/replies, xml ) | Need Help?? |
|
The only difference between my $x and my ($x) is when it's found on the LHS of a "=". See Mini-Tutorial: Scalar vs List Assignment Operator for how it affects the assignment. There is no difference between my ($x) and (my $x) except that my ($x, $y) is shorter than (my $x, my $y).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||