in reply to RE (tilly) 2: Multiple Levels of Array Dereferencing Have me Stumped
in thread Multiple Levels of Array Dereferencing Have me Stumped

I was trying to explain "what" that code does and not "why"
however you'r right: my (@list) = @{[@{$_[0]}]}; will just build an extra (useless) copy, i didn't verified it..
  • Comment on RE: RE (tilly) 2: Multiple Levels of Array Dereferencing Have me Stumped
  • Download Code

Replies are listed 'Best First'.
RE (tilly) 4: Multiple Levels of Array Dereferencing Have me Stumped
by tilly (Archbishop) on Nov 05, 2000 at 23:34 UTC
    It looks to me like metaperl had already figured that out and the confusion was the belief that the extra copy had to do something useful.

    Which it doesn't.