Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: why won't is print every value???

by erasei (Pilgrim)
on Jun 05, 2002 at 18:37 UTC ( [id://171947]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $num_of_params;
    $num_of_params = @ARGV;
    ...
    {
    die ("\n You haven't entered enough parameters !!\n\n");
    }
    
  2. or download this
    die "\nYou haven't entered enough parameters !!\n\n" unless $ARGV[1];
    
  3. or download this
    open (INFILE, $ARGV[0]) or die "unable to open file";
    
    open (OUTFILE, ">$ARGV[1]");
    
  4. or download this
    open (INFILE, $ARGV[0]) or die "unable to open file $ARGV[0]: $!\n";
    open (OUTFILE, ">$ARGV[1]") or warn "unable to open file $ARGV[1]: $!\
    +n";
    
  5. or download this
      -snip-
            @array = ();
            @array = split (/\s+/, $line);
      -snip-
    # if i print $self here it prints out all of the results from that cat
    +ergory
    
  6. or download this
    $choice = <STDIN>;
    
    ...
    chomp $choice;
    
    if ($choice eq 1)
    
  7. or download this
    if (getc(STDIN) eq "1")
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-24 22:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found