in reply to Re^4: adding save logfile feature
in thread adding save logfile feature

If this is your own server, you can probably just make a symlink to your access log, or make the access log available via some configuration setting.

If you really want to do this in perl, check out perlopentut to see how you can write files.