in reply to Order of execution of functions in list
I have bench-marked the shift vs array list assignment.
my $X = shift; my $Y = shift; vs my ($X,$Y) = @_; The second version is faster with more than one variable.
Better is:my ($a1, $a2) = (shift, shift);
my ($X,$Y) = @_;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Order of execution of functions in list
by vsespb (Chaplain) on Sep 16, 2013 at 08:44 UTC | |
|
Re^2: Order of execution of functions in list
by vsespb (Chaplain) on Sep 13, 2013 at 13:29 UTC |