in reply to using shift and $_ in loop

If deconstruction of the @_ array is not required, just use
for (@_) { print; # using $_ here }

See shift, @_.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.