in reply to head of list + rest of list
or, even simpler...my($scalar, @restofarray) = @array;
and @array will contain the remainder.my $scalar = shift(@array);
disclaimer: ignoring differences between arrays and lists for the sake of simplicity
Remember rule one...
|
|---|