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


in reply to Protocol scheme 'http' is not supported

$mech->get( $uri ) returns an HTTP::Response object. Try changing

$mech->get('http://www.perlmonks.com/'); print $mech->content;

to

my $http_response_object = $mech->get('http://www.perlmonks.com/'); print $http_response_object->content;

This worked for me:

$ perl -e 'use WWW::Mechanize; my $mech = WWW::Mechanize->new; my $hro + = $mech->get(q{http://www.perlmonks.com/}); print $hro->content' | l +ess

-- Ken