| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #2 (permalink) |
| NamePros Regular | You can use the TokeParser: This assumes the content is returned to $content Code: $parser = HTML::TokeParser->new(\$content);
$parser->get_tag("title");
$title = $parser->get_token;
print $title->[1], "\n" if $title;
|
| |
| | #3 (permalink) |
| Barru. | I've tried grep - but there is a problem: Code: @title = grep("<title>[a-z]</title>",$content);
push(@filetitles,@title);
edit: fixed, used the wrong method for getting the content
__________________ Last edited by Mikor; 08-25-2006 at 10:58 AM. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |