sub foo { my $bar = shift || return; my $baz = shift || return '<p style="font-color:red">BAD</p>'; }
Again I'll note that this works only for non-true values, IOW if 0(zero) is acceptable then don't do this.
In reply to Re: shift vs @_
by grep
in thread shift vs @_
by Zadeh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |