which doesn't seem to suffer from the largest of the problems. I've also added some clarifications about when it will and won't work.my $self = ref $_[0] ? shift : undef;
As an aside, you would have a very hard time convincing me that this behavior of my and conditionals is anything but a bug in Perl. :)
In reply to Re^3: shift vs @_
by sgifford
in thread shift vs @_
by Zadeh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |