I almost always prefer the my ($self) = @_; style in general, but there are circumstances where you really want to use shift, such as when you're going to pass your own arguments down to another routine:
It's really a question of judicious choices: function first, performance second. Cargo-cult programming third ;-)my ($self) = shift; helper_sub(@_);
In reply to Re: Shift versus Sanity
by VSarkiss
in thread Shift versus Sanity
by tadman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |