Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: File reade and recreate

by adriang (Sexton)
on Aug 21, 2014 at 07:53 UTC ( [id://1098201]=note: print w/replies, xml ) Need Help??


in reply to Re: File reade and recreate
in thread File reade and recreate

Thanks for the suggestion

open($file_read,"+<","$file") or croak "cant open $file for read"; flock($file_read,2); my $count=<$file_read>; $count++; seek($file_read, 0, "0"); print $file_read $count; flock($file_read,8); close($file_read);

Log In?
Username:
Password:

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

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

    No recent polls found