in reply to Re^3: Problem in using Web::Scraper, coming from HTML::TreeBuilder::XPath
in thread Problem in using Web::Scraper, coming from HTML::TreeBuilder::XPath

I was finally able to run the code without errors!! Turns out that I was missing some extra files in the HTML::Treebuilder folder.

However, I am still not able to print results on a text file. I am using your code, and at the end:

for my $out (@{$res->{out}}) { print F3 "$out->{title} $out->{info} $out->{info}\n"; }

to print the file (F3 is the output file). Which is similar to what I found on the CPAN website (example with the tweets). But I get something like "HASH(0x100d35ef0)" in my text file, and that's all: no data. What am I doing wrong?

Many, many, many thanks!!!

  • Comment on Re^4: Problem in using Web::Scraper, coming from HTML::TreeBuilder::XPath
  • Download Code

Replies are listed 'Best First'.
Re^5: Problem in using Web::Scraper, coming from HTML::TreeBuilder::XPath
by Anonymous Monk on Oct 07, 2013 at 06:24 UTC

    What am I doing wrong?

    I don't know, I can't tell what you're doing. or you're not reading closely enough what I have written.