Begin by reading perlsub.
The use of local for routine parameter passing is not a good idea; you should be using my instead:
While there are circumstances where local is needed, this is not one of them. There are other excellent writeups on this topic in the Tutorials section.sub do_work { my ($cmd) = @_; # whatever... }
In reply to Re: Strict and Subroutines
by VSarkiss
in thread Strict and Subroutines
by Pearte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |