echo input | perl -we 'print "ARGS: @ARGV\n"; print while ' file.txt arg2