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 reply to Re: Declaring my $var versus declaring my($var)
by ikegami
in thread Declaring my $var versus declaring my($var)
by dh1760
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |