tty1x has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl –w chomp(my $user_value = <STDIN>); if ($user_value eq "h") { print " hi \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: <STDIN> detects only input after perl script is run.
by SuicideJunkie (Vicar) on May 03, 2013 at 15:36 UTC | |
by tty1x (Novice) on May 03, 2013 at 16:47 UTC | |
|
Re: <STDIN> detects only input after perl script is run.
by blue_cowdawg (Monsignor) on May 03, 2013 at 15:41 UTC | |
by tty1x (Novice) on May 03, 2013 at 16:49 UTC | |
|
Re: <STDIN> detects only input after perl script is run.
by karlgoethebier (Abbot) on May 03, 2013 at 16:49 UTC |