in reply to Re: mix arguments with normal input
in thread mix arguments with normal input

Another way to remove from @ARGV is

my ($input1, $input2) = (shift,shift);

I realize you know this but since this is a new to Perl type question I'll throw in this option.

Replies are listed 'Best First'.
Re^3: mix arguments with normal input
by Your Mother (Archbishop) on Sep 28, 2018 at 17:43 UTC

    What?! No splice!? :P

    my ( $one, $two ) = splice @ARGV, 0, 2;