For those totally lost, this is necessary to handle conditional GET (where If-Matches: or If-Modified-Since: is set) sanely. If you're using mod_perl (as I normaly would be) it's no big deal to just use
and use that to determine if the response should actually be sent or not, but there doesn't appear to be an equivalent for non-mod_perl perl CGIs.