merlyn,
What's wrong with: $mech->response->headers->as_string?
Nothing, except it solves a problem other than the one I was going after (see Description).
First, the docs for WWW::Mechanize leave a little to be desired as far as getting at the headers in the first place. You have to know that the HTTP::Response object returned by the response() method has what you are looking for.
Second, the intention by accessing them by key was just to get the value you wanted as per the Description. In this particular case, water was after the p3p key. Of course you could parse the results of the as_string method, but why?
|