array slice?by zeltus (Beadle)
|on Jan 31, 2014 at 14:18 UTC||Need Help??|
zeltus has asked for the
wisdom of the Perl Monks concerning the following question:
I think my question is to do with array slices... but of course, I may be wrong!
Now, I am used to extracting slices using
in this case, extract the first element from @tarray and "give" it to $v3...but upon examining some legacy code, I came across...
...which does the same thing. But I can't work out why it works. Can someone please explain? Is it classifiable as a form or array slicing? I prefer my way for clarity, but are there any pros and cons for either method?