in reply to Re^2: new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )
in thread new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )
It is most probably the copying of the argument list (the full array) in the function call that takes this time difference.
Passing a reference to the array would probably solve the issue, but the syntax would become less obvious to use.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )
by Anonymous Monk on Dec 08, 2012 at 16:02 UTC | |
|
Re^4: new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )
by LanX (Saint) on Dec 08, 2012 at 17:34 UTC |