Subject: | a bug in WWW-Scripter |
Date: | Thu, 17 Nov 2011 15:56:13 +0900 |
To: | bug-WWW-Scripter [...] rt.cpan.org |
From: | "K.Tsukamoto" <tukamoto [...] ac21.org> |
Hello,
I'm Kengo Tsukamoto, Nagoya University in Japan.
I found a bug in WWW-Scripter, so I'm sending this mail.
OS: CentOS 6.0 ( 2.6.32-71.29.1.el6.i686 )
Perl: 5.10.1 i386
WWW-Scripter 0.023
Summary:
My program with WWW-Scripter stops when it accesses a domain that returns
IP address "0.0.0.0", but with WWW-Mechanize it doesn't stop.
Detail:
The domain "coloquel.com" is "0.0.0.0"
## source
use WWW::Scripter;
my $w = WWW::Scripter->new( autocheck=>0 );
$w->get( 'http://coloquel.com/' );
$w->find_all_links();
print "hoge\n";
## result (scripter.pl)
[root@localhost ~]# perl scripter.pl
Can't call method "links" on an undefined value at
/usr/local/share/perl5/WWW/Scripter.pm line 555.
[root@localhost ~]#
## source (mech.pl)
use WWW::Mechanize;
my $mech = WWW::Mechanize->new( autocheck=>0 );
$mech->get( 'http://coloquel.com/' );
$mech->find_all_links();
print "hoge\n";
## result
[root@localhost ~]# perl mech.pl
hoge
[root@localhost ~]#
Regards,
--
/* *************************************** */
// Kengo TSUKAMOTO
// Takakura Laboratory
// Dept. of Information Engineering
// School of Engineering Nagoya University
/* *************************************** */