Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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 => ''); What does this instantiate? Is it looking for all links on the page Sorry if this is a silly question, never used these objects/modules before today/yesterday :)

Comment on Re^2: Perl HTML confusion...
Download Code
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 => "" }, "HTML::Element")

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2015-11-26 13:05 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (698 votes), past polls