From John.Hockaday at ga.gov.au Wed Jan 12 19:16:23 2005 From: John.Hockaday at ga.gov.au (John.Hockaday@ga.gov.au) Date: Wed Jan 12 19:20:04 2005 Subject: [Canberra-pm] Problems with HTML::LinkExtor->parse Message-ID: 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 I am a LINK!!! }; 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 From John.Hockaday at ga.gov.au Wed Jan 12 21:32:37 2005 From: John.Hockaday at ga.gov.au (John.Hockaday@ga.gov.au) Date: Wed Jan 12 21:34:43 2005 Subject: [Canberra-pm] Problems with HTML::LinkExtor->parse Message-ID: Hi, I have been able to get this working on another machine. It seems that there is a bootstrap error as follows: HTML::Parser object version 3.25 does not match bootstrap parameter 3.26 at /usr /local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 225. Compilation failed in require at /public/data/asddgate/lib/perl5.6.1/sun4-solari s/HTML/LinkExtor.pm line 26. Does this mean that I need to recompile DynaLoader, HTML::Parser or HTML::LinkExtor? This may fix my problem below. Thanks. John > -----Original Message----- > From: canberra-pm-bounces@pm.org > [mailto:canberra-pm-bounces@pm.org] On Behalf Of Hockaday John > Sent: Thursday, 13 January 2005 2:16 PM > To: canberra-pm@pm.org > Subject: [Canberra-pm] Problems with HTML::LinkExtor->parse > > > 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 I am a LINK!!! }; > 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 > _______________________________________________ > Canberra-pm mailing list > Canberra-pm@pm.org > http://mail.pm.org/mailman/listinfo/canberra-pm > From jepri at babylon.alphacomplex.org Thu Jan 13 15:10:20 2005 From: jepri at babylon.alphacomplex.org (Jepri) Date: Wed Jan 12 23:09:03 2005 Subject: [Canberra-pm] Problems with HTML::LinkExtor->parse In-Reply-To: References: Message-ID: <41E6FFDC.6030608@babylon.alphacomplex.org> If perl is running 'normal' programs, then dynaloader is working. It's used for a few core modules, so it is pretty easy to tell. However I do notice that you appear to be using two different versions of perl - one in /usr/local, one in /public. The error is thrown in dynaloader while it is attempting to load HTML::LinkExtor. I suggest trying to either: run the version of perl in /public or recompile/reinstall HTML::LinkExtor using the perl you have installed in /usr/local. The bizarre thing here is that the program ran at all... John.Hockaday@ga.gov.au wrote: >Hi, > >I have been able to get this working on another machine. It seems that there >is a bootstrap error as follows: > >HTML::Parser object version 3.25 does not match bootstrap parameter 3.26 at >/usr >/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 225. >Compilation failed in require at >/public/data/asddgate/lib/perl5.6.1/sun4-solari >s/HTML/LinkExtor.pm line 26. > >Does this mean that I need to recompile DynaLoader, HTML::Parser or >HTML::LinkExtor? > >This may fix my problem below. > >Thanks. > > >John > From John.Hockaday at ga.gov.au Sun Jan 16 16:13:01 2005 From: John.Hockaday at ga.gov.au (John.Hockaday@ga.gov.au) Date: Sun Jan 16 16:16:17 2005 Subject: [Canberra-pm] Problems with HTML::LinkExtor->parse Message-ID: Hi all, Sorry I didn't get back to you earlier. I was in Brisbane on Friday. I think that I have found the problem. It would appear that there wasn't a Parser.so file in ...../site_perl/auto/HTML/Parser/Parser.so and ...../sun4-solaris/auto/HTML/Parser/Parser.so. I have copied these files back to the machine that was causing the error and it seems to be working now. It was caused by a problem with rsync using the --cvs-exclude option not copying .so files. Hence the .so files were not copied from the test machine to the master machine after the successful build and testing on the test machine. Thanks to all who replied to my email. John > -----Original Message----- > From: Jepri [mailto:jepri@babylon.alphacomplex.org] > Sent: Friday, 14 January 2005 10:10 AM > To: Hockaday John > Cc: canberra-pm@pm.org > Subject: Re: [Canberra-pm] Problems with HTML::LinkExtor->parse > > > If perl is running 'normal' programs, then dynaloader is > working. It's > used for a few core modules, so it is pretty easy to tell. > > However I do notice that you appear to be using two different > versions > of perl - one in /usr/local, one in /public. The error is thrown in > dynaloader while it is attempting to load HTML::LinkExtor. > > I suggest trying to either: run the version of perl in /public or > recompile/reinstall HTML::LinkExtor using the perl you have > installed > in /usr/local. > > The bizarre thing here is that the program ran at all... > > John.Hockaday@ga.gov.au wrote: > > >Hi, > > > >I have been able to get this working on another machine. It > seems that there > >is a bootstrap error as follows: > > > >HTML::Parser object version 3.25 does not match bootstrap > parameter 3.26 at > >/usr > >/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 225. > >Compilation failed in require at > >/public/data/asddgate/lib/perl5.6.1/sun4-solari > >s/HTML/LinkExtor.pm line 26. > > > >Does this mean that I need to recompile DynaLoader, HTML::Parser or > >HTML::LinkExtor? > > > >This may fix my problem below. > > > >Thanks. > > > > > >John > > > > From andrew-pm at andrew.net.au Tue Jan 18 00:59:51 2005 From: andrew-pm at andrew.net.au (Andrew Pollock) Date: Tue Jan 18 01:00:08 2005 Subject: [Canberra-pm] Equivalent to PHP's var_dump()? Message-ID: <20050118085951.GS9803@daedalus.andrew.net.au> Here's a question that just popped into my head... I really like PHP's var_dump() for when I'm playing with random data structures that I don't have a clear handle on the structure of. It allows me to visually get that handle on it. I miss this when I'm doing stuff in Perl. Is there some way of doing the same sort of thing? regards Andrew -- linux.conf.au 2005 - http://linux.conf.au/ - Birthplace of Tux April 18th to 23rd - http://linux.conf.au/ - LINUX Canberra, Australia - http://linux.conf.au/ - Get bitten! From jepri at babylon.alphacomplex.org Tue Jan 18 17:06:00 2005 From: jepri at babylon.alphacomplex.org (Jepri) Date: Tue Jan 18 01:04:37 2005 Subject: [Canberra-pm] Equivalent to PHP's var_dump()? In-Reply-To: <20050118085951.GS9803@daedalus.andrew.net.au> References: <20050118085951.GS9803@daedalus.andrew.net.au> Message-ID: <41EDB278.5080400@babylon.alphacomplex.org> Indeed there is. It's a staple for perl programmers, you'll often see it in code: #!/usr/bin/perl use Data::Dumper; print Dumper $x; It can also do clever tricks like serialise complex data structures. Andrew Pollock wrote: >Here's a question that just popped into my head... > >I really like PHP's var_dump() for when I'm playing with random data >structures that I don't have a clear handle on the structure of. It allows >me to visually get that handle on it. I miss this when I'm doing stuff in >Perl. > >Is there some way of doing the same sort of thing? > >regards > >Andrew > > >