Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 :)

Replies are listed 'Best First'.
Re^3: Perl HTML confusion...
by marinersk (Curate) 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 John Coltrane plays...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-02-25 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (364 votes). Check out past polls.