Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Blank data file

by Aristotle (Chancellor)
on Jul 09, 2002 at 22:15 UTC ( [id://180632]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Fcntl qw(:DEFAULT :flock :seek);
    
    sysopen FILE, $mailclicks, O_RDWR | O_CREAT or die "couldn't open $mai
    +lclicks: $!";
    ...
    
    truncate FILE, tell FILE; # because the file may be smaller than it wa
    +s before
    close FILE;
    
  2. or download this
    use Fcntl qw(:DEFAULT :flock :seek);
    
    sysopen FILE, $mailclicks, O_RDWR | O_CREAT or die "couldn't open $mai
    +lclicks: $!";
    ...
    
    truncate FILE, tell FILE;
    close FILE;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2025-01-16 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (54 votes). Check out past polls.