Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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
Replies are listed 'Best First'.
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 meditating upon the Monastery: (16)
As of 2015-07-31 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls