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

Re: Reading and incrementing an integer

by ph0enix (Friar)
on Jul 31, 2002 at 06:53 UTC ( [id://186436]=note: print w/replies, xml ) Need Help??


in reply to Reading and incrementing an integer

You probably want replace old number with new one

sub write_hits { my $hit_count = &read_hits($_[0]); open (HITSW, '>', "$_[0]"); $hit_count++; print HITSW $hit_count; close (HITSW); }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-16 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found