>>>>> "Aman" == Aman Thind <[EMAIL PROTECTED]> writes:

Aman> I rushed to my code and replaced all the my ($var) with my $var :)

Except that this can also break things.  Witness:

sub optimal {
  my ($first) = @_;

  ...

}

If you remove the parens there, you break the subroutine, as it will
be getting the number of arguments, not the first argument.

Rather than having a rule like "always" or "never" there, you should
understand precisely what it is you are doing.  And do the right thing.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to