Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Unable to reuse STDIN

by GrandFather (Saint)
on Jul 04, 2016 at 02:34 UTC ( [id://1167100]=note: print w/replies, xml ) Need Help??


in reply to Unable to reuse STDIN

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1167100]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-18 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found