P is for Practical | |
PerlMonks |
Re: writing to the top of a fileby coec (Chaplain) |
on May 20, 2004 at 03:07 UTC ( [id://354839]=note: print w/replies, xml ) | Need Help?? |
Try this
Tie::File isn't a standard module but its easily installed as it is pure Perl (i.e. doesn't need a C compiler installed). CC Updated: changed '||' to 'or'. Another update Given that whatever solution you choose will be running from a web page (via CGI), have you given any thought file locking? What if multiple copies of the CGI script are running at the same time? You could potentially lose a lot of data...
In Section
Seekers of Perl Wisdom
|
|