Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: <STDIN> detects only input after perl script is run.

by blue_cowdawg (Monsignor)
on May 03, 2013 at 15:41 UTC ( [id://1031915]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    echo "h" | perl filename.pl
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;  #damn fine idea
    my $user_value=<STDIN>;
    
    chomp $user_vaule;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-23 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found