in reply to Re: parsing html
in thread parsing html
Now I paste my code....the one I used and the error message...I would'nt past it before for not looking so stupid as I am....:-(
#!/usr/local/bin/perl use strict; use warnings; use LWP::Simple; my $url3="http://microrna.sanger.ac.uk/cgi-bin/targets/v5/detail_view. +pl?transcript_id=ENST00000226253"; my $content=get $url3; use HTML::TreeBuilder; my $tree = HTML::TreeBuilder->new; $tree->parse_file($content); $tree->delete; use HTML::Element; my @elements = my $element->find('b',); my @anchors = $element->look_down('_tag' => 'b'); print "@elements\n";
and now the error.... Can't call method "find" on an undefined value at test.pl line 17......I don't now how to select the string between "b" and "/b" because I don't actually know html......and I don't understand the synthax...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: parsing html
by wfsp (Abbot) on May 14, 2009 at 17:06 UTC | |
by paola82 (Sexton) on May 15, 2009 at 09:10 UTC | |
by wfsp (Abbot) on May 15, 2009 at 09:28 UTC | |
by paola82 (Sexton) on May 15, 2009 at 10:19 UTC | |
by wfsp (Abbot) on May 15, 2009 at 11:00 UTC | |
| |
Re^3: parsing html
by whakka (Hermit) on May 14, 2009 at 17:14 UTC |