Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Unable to reuse STDIN

by fireblood (Scribe)
on Jul 04, 2016 at 02:04 UTC ( [id://1167099]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/opt/local/tools/bin/perl
    
    ...
        print "Now enter something: ";
        $response = <>;
        print "You entered -->", $response, "<--\n";
    
  2. or download this
    echo Hello | pgm
    input line is Hello
    Use of uninitialized value $response in print at /userdata/cfor/utils/
    +worklib/pgm line 25.
    Now enter something: You entered --><--
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-19 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found