in reply to difference between shift and assignment

Is there any difference between the two examples below in regards to performance?
use benchmark module and try to figure it out

Is there any difference between the two examples below in regards to functionality?
when you extract more variables from the argument the shift looks ugly, and (variables...) = @_ looks better. but it depends on context(area of use) too, because when you don't need all the variables passed as argument to be immediately extracted in the first statement inside the routine, then shift is suitable.(but you can use array slices also to achieve this).


Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
  • Comment on Re: difference between shift and assignment