I prefer to use my ($name) = @_; because it scales better and it preserves @_ in case I have need to access the parameters later in the sub. Using the list form shown also provides better usage documentation by showing the parameters in much the same way they are provided by calling code.
In reply to Re^2: Custom Module question
by GrandFather
in thread Custom Module question
by imfaus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |