note
clueless newbie
<p>Being clueless, I was wondering why there's no file tie module that performs this task ... </p>
<p> Here you go ... <a href=http://search.cpan.org/~sharyanto/Tie-Handle-FileWriteRotate-0.02/lib/Tie/Handle/FileWriteRotate.pm>Tie::Handle::FileWriteRotate</a>
<code>
use Tie::Handle::FileWriteRotate;
tie *FH, 'Tie::Handle::FileWriteRotate',
dir=>'/some/dir', prefix=>'myapp',
print FH "Logging a line\n";
print FH "Logging another line\n";
</code>
1013245
1013245