Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Perl HTML confusion...

by AI Cowboy (Sexton)
on Sep 17, 2013 at 18:06 UTC ( #1054504=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl HTML confusion...
in thread Perl HTML confusion...

That makes sense - but that raises one more question I have, an HTML::Element object such as $h is one element, or all the elements on a page? basically... $a = HTML::Element->new('a', href => 'http://www.perl.com/'); What does this instantiate? Is it looking for all links on the page www.perl.com? Sorry if this is a silly question, never used these objects/modules before today/yesterday :)


Comment on Re^2: Perl HTML confusion...
Download Code
Re^3: Perl HTML confusion...
by marinersk (Chaplain) on Sep 17, 2013 at 18:26 UTC
    Yeah, sorry for opening Pandora's Box and then running away.

    Whatever the HTML::Element object is, $h is a single instance of that object. What is it? I'd have to read the documentation, same as you.

    I would expect that someone who actually uses the module will wander by and pick up the torch here. My advice on this topic would be increasingly (if that's even possible) more theoretical than it already is.

Re^3: Perl HTML confusion...
by Anonymous Monk on Sep 18, 2013 at 02:49 UTC

    bless({ _tag => "a", href => "http://www.perl.com/" }, "HTML::Element")

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-08-22 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (147 votes), past polls