Besides style, is there any performance penalty paid by shift?
Yes; if you do it repeatedly hundreds of thousands of times in a tight loop, you might slow down your program as much as performing one IO operation. In other words, none that you will ever notice.
In reply to Re^3: shift vs @_
by chromatic
in thread shift vs @_
by Zadeh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |