in reply to Re: use of << on comand line
in thread use of << on comand line

Or shift out the contents of @ARGV and use <>. This is a far more flexible and standard approach.