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;
In reply to Re: <STDIN> detects only input after perl script is run.
by blue_cowdawg
in thread <STDIN> detects only input after perl script is run.
by tty1x
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |