in reply to <STDIN> detects only input after perl script is run.

perl filename.pl his passing "h" as a command line parameter. You will find it in @ARGV

perl filename.pl h
is providing no command line parameters, and sending "h" to STDIN

Replies are listed 'Best First'.
Re^2: <STDIN> detects only input after perl script is run.
by tty1x (Novice) on May 03, 2013 at 16:47 UTC
    Ahh thanks for the @ARGV . That answers my question :)