SamCG has asked for the wisdom of the Perl Monks concerning the following question:
Not sure what to make of this error or how to go about troubleshooting it... using strawberry perl portablezip edition on a Virtual machine, so I'm not sure if that's what's causing this... Note that because I used -e on a windows cmd line I need to escape the double-quotes.
I:\perl>perl -e "use WWW::Mechanize;$mech=WWW::Mechanize->new() or die + \"Cannot create mech: $!\n\";$mech->get('http://www.google.com') or +die \"Cannot get: $!\";$page=$mech->content();print $page;" Error GETing http://www.google.com: Can't connect to www.google.com:80 + (Bad host name) at -e line 1.
-----------------
s''limp';@p=split '!','n!h!p!';s,m,s,;$s=y;$c=slice @p1;so brutally;d;$n=reverse;$c=$s**$#p;print(''.$c^chop($n))while($c/=$#p)>=1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: WWW::Mechanize can't GET; no helpful error message comes back
by perlfan (Vicar) on Jun 06, 2013 at 15:27 UTC | |
by SamCG (Hermit) on Jun 06, 2013 at 16:17 UTC | |
by runrig (Abbot) on Jun 06, 2013 at 17:38 UTC | |
by PerlSufi (Friar) on Jun 07, 2013 at 15:54 UTC | |
by runrig (Abbot) on Jun 10, 2013 at 17:02 UTC | |
by SamCG (Hermit) on Jun 06, 2013 at 18:04 UTC | |
by PerlSufi (Friar) on Jun 06, 2013 at 18:29 UTC | |
by runrig (Abbot) on Jun 06, 2013 at 23:13 UTC |
Back to
Seekers of Perl Wisdom