Before assuming this can or should be solved with perl, I would try to eliminate more possibilities, e.g. it could be caused by your hosting provider not giving you access to the real www directory and having a script refreshing the real one.
You might also want to provide details such as version of Apache or Netscape server, running on what platform/version etc. etc. to get a reasonable response.