in reply to process file via command line

Try this instead
perl -i -pe '# your code here' access_log
See perlrun for more info about munging from the command line.
HTH

_________
broquaint