in reply to Re: [Study]: Searching for square roots
in thread [Study]: Searching for square roots
If I needed to pull more than one value off the front of @_ and leave the rest I'd possibly use splice:
my ($arg1, $arg2) = splice 0, 2, @_;
but more likely I'd pull the tail elements out into an array:
my ($arg1, $arg2, @tail) = @_;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: [Study]: Searching for square roots
by blazar (Canon) on Nov 15, 2006 at 09:37 UTC |