in reply to filter denies existence of input
Well, you don't pass any arguments to your script, so $ARGV[0] isn't defined.