perlquestion
SamCG
<br/><br/>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.
<code>
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.</code>
<div class="pmsig"><div class="pmsig-300781">
<br/><br/>
-----------------<br/>
<sub>
s''limp';@p=split '!','n!h!p!';s,m,s,;$s=y;$c=slice @p[1];so brutally;d;$n=reverse;$c=$s**$#p;print(''.$c^chop($n))while($c/=$#p)>=1;
</sub>
</div></div>