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

Re: Losing or overwritting values

by RhetTbull (Curate)
on Jan 05, 2003 at 01:22 UTC ( [id://224349]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<USEDPW>)
        {
    ...
    open(USEDPW, "> $usedpw") or die "crap on me for writing $!";
    flock USEDPW, 2;
    print USEDPW "$pw\n";
    
  2. or download this
    #notice we declare it OUTSIDE the loop
    my $pw;
    ...
    open(USEDPW, "> $usedpw") or die "crap on me for writing $!";
    flock USEDPW, 2;
    print USEDPW "$pw\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-25 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found