The stupid question is the question not asked | |
PerlMonks |
Re: Unable to reuse STDINby GrandFather (Saint) |
on Jul 04, 2016 at 02:34 UTC ( [id://1167100]=note: print w/replies, xml ) | Need Help?? |
The Hello | is providing stuff on STDIN. You don't have anything in @ARGV because you have no command line arguments to pgm. Even if you did provide command line parameters things still wouldn't go your way - a file provided on the command line would be processed after the while loop and would provide the responses you hope to get from the user. What is the big picture? What do you really want to achieve?
Premature optimization is the root of all job security
In Section
Seekers of Perl Wisdom
|
|