sub mysub { my $foo='default'; $foo = shift if @_; }
Delayed post: I keep hitting Newest Nodes from the preview page, then wondering why my post doesn't show up. D'oh! :)
In reply to Explicitly check for argument presence...
by RMGir
in thread Default subroutine parameters
by thelenm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |