in reply to Scraping with Treebuilder
Yes, it's because you have a couple of errors in your code:
my @rows = map { $_->parent-parent } @links;
should be parent->parent. And ...
my @hrefs = $node->look_down( _tag => 'a' )
is missing a semi-colon ';' at the end.
That should make your code compile cleanly, anyway. Good luck!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Scraping with Treebuilder
by lv211 (Beadle) on Jul 15, 2006 at 20:48 UTC | |
by liverpole (Monsignor) on Jul 15, 2006 at 20:54 UTC |