in reply to <STDIN> detects only input after perl script is run.
If you wanted to send an "h" to standard input you should invoke your script
also another thought:echo "h" | perl filename.pl
#!/usr/bin/perl -w use strict; #damn fine idea my $user_value=<STDIN>; chomp $user_vaule;
|
|---|
| 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:49 UTC |