http://www.perlmonks.org?node_id=820419


in reply to Checking contents of fetched URL.

The presence of ->content in your output should have given you a hint. The term $res->content does not get interpolated, only $res does.

You want: print "\nResponse = ", $res->content, " \n"; just as you did in the two lines above.


holli

You can lead your users to water, but alas, you cannot drown them.