Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: Re: Test for standard input

by mikfire (Deacon)
on Oct 03, 2002 at 18:05 UTC ( [id://202597]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ARGS = @ARGV;
    if ( -t and $ARGS eq 0 ) {
    }
    
  2. or download this
    die "No input found\n" if ( -t and @ARGV == 0 );
    
  3. or download this
    $names++, shift if $ARGV[0] eq "-l";
    
  4. or download this
    @ARGV = "-" unless @ARGV;
    
  5. or download this
    exit 0 unless ( grep { -T or $_ eq "-" } @ARGV );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found