Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Arguments from CLI or <STDIN>

by golux (Chaplain)
on Aug 04, 2017 at 19:25 UTC ( [id://1196749]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        -t  Filehandle is opened to a tty.
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    } else {
        say "Script '$iam' is receiving input from a pipe";
    }
    
  3. or download this
    Script 'script' called from a terminal with 3 arg(s):
       1.  arg1
       2.  arg2
       3.  arg3
    
  4. or download this
    Script 'script' is receiving input from a pipe
    
  5. or download this
        while (<STDIN>) {
            say "Got input:  $_";
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found