http://www.perlmonks.org?node_id=239119


in reply to Re: Which one is the better Regex?
in thread Which one is the better Regex?

/me suggests another alternative solution
use XML::LibXML; use FileHandle; my $parser = XML::LibXML->new; my $doc = $parser->parse_html_fh( \*DATA ); print $doc->findvalue('//title'); __DATA__ <html> <head> <title>Nothing to see here</title> </head> </html>
XML::LibXML and XPath rocks!

--
Ilya Martynov, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org