in reply to how to access apache environment variables

The following may give you an idea how to do this:

perl -E 'for (keys %ENV) { say "$_=$ENV{$_}"; }'