Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Perl HTML confusion...

by AI Cowboy (Beadle)
on Sep 17, 2013 at 18:06 UTC ( [id://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 :)

Replies are listed 'Best First'.
Re^3: Perl HTML confusion...
by marinersk (Priest) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1054504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found