[Canberra-pm] Problems with HTML::LinkExtor->parse

John.Hockaday at ga.gov.au John.Hockaday at ga.gov.au
Wed Jan 12 19:16:23 PST 2005


Hi,

I am running this little script:

#!/usr/local/bin/perl
#####################
# Tests the HTML::Extor package
#####################
use Data::Dumper;
use HTML::LinkExtor;
use LWP::Simple;

 $LX = HTML::LinkExtor->new();
 $input = q{If <a href="http://perl.com/"> I am a LINK!!! </a>};
 print "Parsing output = \n", Dumper($LX->parse($input));
 print "Linking output = \n", Dumper($LX->links);
####################
# End script
####################

and I get the following output:

marl:/public/asddadm/test$ ./linkextortest.pl
Parsing output =
$VAR1 = bless( {
                 'extractlink_cb' => undef,
                 '_hparser_xs_state' => \1030704
               }, 'HTML::LinkExtor' );
Linking output =
marl:/public/asddadm/test$

It seems to me that the HTML::LinkExtor->parse is not working.  Does anyone
know how to check this and maybe what the problem is?

Thanks.


John Hockaday
Geoscience Australia
GPO Box 378
Canberra ACT 2601
(02) 6249 9735
http://www.ga.gov.au/ 
john.hockaday\@ga.gov.au


More information about the Canberra-pm mailing list