in reply to Processing ARGV

It looks as if the script is not executed by perl at all.

Try to run perl textARGV.pl foo bar on your command line instead.