sub test_args { my $t = pop(@_); my @ar = @_; ... #### sub test_args { my ($t, @ar) = (pop(@_), @_); ... #### sub test_args { my (@ar, $t); (@ar[0..$#_-1], $t) = @_; ...
## sub test_args { my ($t, @ar) = (pop(@_), @_); ... ##
## sub test_args { my (@ar, $t); (@ar[0..$#_-1], $t) = @_; ...