Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Unrecognized character \x93 marked by <-- HERE after print <<-- near column 8 at C:Users\Users\Desktop\Crawlertst1.pl line 19 What would that error mean? Looked it up at google, seems go on about some encoding problems. A day ago there was no encoding bugs on compilation.use strict; use IO::Socket; use local::lib; print("Welcome to my webcrawler, \n Please specify a url in the following format : www.xxx.y \n"); chomp(my $yourURL=<STDIN>); my $sock = new IO::Socket::INET ( PeerAddr => '$DSTaddress', PeerPort => '80', Proto => 'tcp', ); die "Could not create socket: $!\n" unless $sock; print (“TCP Connection Success. \n"); send($sock,"GET http:$yourURL HTTP/1.0\n\n",0); @response=<SOCKET>; print("@response");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with my Crawler
by moritz (Cardinal) on Mar 08, 2011 at 09:28 UTC | |
|
Re: Help with my Crawler
by Corion (Patriarch) on Mar 08, 2011 at 09:28 UTC | |
by Anonymous Monk on Mar 08, 2011 at 11:21 UTC | |
by Corion (Patriarch) on Mar 08, 2011 at 11:24 UTC | |
|
Re: Help with my Crawler
by ikegami (Patriarch) on Mar 08, 2011 at 09:31 UTC | |
|
Re: Help with my Crawler
by JavaFan (Canon) on Mar 08, 2011 at 12:33 UTC |