I would write shift(@_) (or, in some cases, shift @_), because I've seen too many cases where it was hard to even find where the argument handling was being done is some complex subroutines. It is nice to only search for @_ and $_[ vs. also having to search for shift without an argument or pop without an argument (the "without an argument" complicates such a visual scan considerably). Well, and I just find avoiding 2 characters to be a silly choice when it reduces code clarity.
- tye
In reply to Re^6: What is the + in +shift doing here?
by tye
in thread What is the + in +shift doing here?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |