in reply to difference between shift and assignment
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).
|
|---|