Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Namespace error while parsing html document.

by mr_p (Scribe)
on Jul 01, 2010 at 13:25 UTC ( #847511=note: print w/ replies, xml ) Need Help??


in reply to Re: Namespace error while parsing html document.
in thread Namespace error while parsing html document.

Do you know why I was not able to pass $content->{_content} to parse_html_string(), It was blank. Isn't $content->{_content} suppose to have the the file downloaded?

Also,

The only reason I need to load the html page is because I wanted to parse stylesheet link out. For Instance:

Can I use RegExp to parse the below string? I would need to parse all three hrefs in to array.

<?xml-stylesheet href="perl1.css" type="text/css"?> <link href="//www.perl.org/css/perl1.css" rel="stylesheet"> <link href="/css/perl.css" rel="stylesheet">


Comment on Re^2: Namespace error while parsing html document.
Download Code
Re^3: Namespace error while parsing html document.
by ikegami (Pope) on Jul 01, 2010 at 17:43 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://847511]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2014-07-29 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (228 votes), past polls