sub do_something { my $file = shift || 'default'; }
sub do_something { my $file = shift or warn "empty parameter\n"; }
In reply to (ichimunki) Re x 2: on to better coding (no uninitialized values)
by ichimunki
in thread on to better coding (no uninitialized values)
by melguin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |