Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: Perl HTML confusion...

by AI Cowboy (Beadle)
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 :)

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 => "" }, "HTML::Element")

Log In?

What's my password?
Create A New User
Domain Nodelet?
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 romping around the Monastery: (4)
As of 2022-08-09 02:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found