Referrer has to be provided from the client. You can't do it server-side. Some browsers allow you to hide or possibly even designate the referrer field. I expect Perl lets you do it with a HTTP request..look for request header field settings.
I'm guessing you could probably have a local proxy server strip and/or fake http-referrers, but I haven't looked into it.