Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Re: Improvement on script needed.

by Not_a_Number (Prior)
on Sep 08, 2003 at 20:08 UTC ( [id://289852]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(DATA, "$db") || die "Can not open: $!\n";
    my @dat = (<DATA>);
    close(DATA);
    open(DATA, "$db") || die "NO GO: $!\n";
    
  2. or download this
    while (<DATA>) {
       # ...
       open(DATA,"> test4.txt") or die $!;;
       # ...
    }
    
  3. or download this
    my $i = 0;
    while ($i < 5) {
       open (OUT, '>oops.txt') || die "NO GO: $!\n";
       print OUT $i;
       $i++;
    }
    
  4. or download this
    open (OUT, '>oops.txt') || die "NO GO: $!\n";
    my $i = 0;
    while ($i < 5) {
       print OUT $i;
       $i++;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-24 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found