Of course, it still can't tell if the array was empty or if it shifted an undefined value off it.sub foo { defined(my $x = shift) or warn "No parameter given!" # ... }
In reply to Re: shift, undef and 'or die'
by ariels
in thread shift, undef and 'or die'
by agoth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |