in reply to Re: Why doesn't perl optimize this?
in thread Why doesn't perl optimize this?
Maybe clearer: [@a] creates the ref to a copy (and copying is expensive) while \@a is the ref to the original array (no costs!).
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why doesn't perl optimize this?
by nbtrap (Sexton) on Jun 04, 2013 at 02:09 UTC | |
by LanX (Saint) on Jun 04, 2013 at 10:29 UTC | |
by nbtrap (Sexton) on Jun 05, 2013 at 01:57 UTC | |
by LanX (Saint) on Jun 05, 2013 at 02:12 UTC |