|Think about Loose Coupling|
Re: Subroutines: @_ and shiftby mlh2003 (Scribe)
|on May 14, 2005 at 13:32 UTC||Need Help??|
The other difference is that:
basically copies all parameters passed to the array from @_ to @blah. It leaves @_ intact (for other processing if required).
will REMOVE the first element of the parameter array @_ and place it in the $blah scalar. 'shift'ing will shorten the @_ array. This, as gaal mentioned, modifies @_.
Code is untested unless explicitly stated