That's exactly what I was doing, and then unpacking @arg--over and over again. When I do something over and over again, I usually reach for a sub.
Where you draw the line between repeating code and writing subroutines is a matter of style. I tend to reach for a sub on the third instance. YMMV.
TGI says moo
In reply to Re^2: Messing with @_
by TGI
in thread Messing with @_
by TGI
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |