Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: HTM::TreeBuilder, HTML::Element's look_down() method

by 7stud (Deacon)
on Oct 06, 2010 at 21:24 UTC ( #863869=note: print w/replies, xml ) Need Help??


in reply to Re: HTM::TreeBuilder, HTML::Element's look_down() method
in thread HTM::TreeBuilder, HTML::Element's look_down() method

Ah, thanks! And I could just use the same method as in the first example. The examples I looked at didn't use die(). I should have thought of that myself.

Thanks again!

  • Comment on Re^2: HTM::TreeBuilder, HTML::Element's look_down() method

Replies are listed 'Best First'.
Re^3: HTM::TreeBuilder, HTML::Element's look_down() method
by afresh1 (Hermit) on Oct 06, 2010 at 21:45 UTC

    If you had done the same as the first example, it should have worked as well, however I would still recommend checking that it was successful.

    my $tree = HTML::TreeBuilder->new_from_content($html) or die $!;
    l8rZ,
    --
    andrew

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863869]
help
Chatterbox?
[Corion]: Maybe add an else branch in which you print what the values of $line and $mydt are?
[Cosmic37]: ah thank you I will try
[Cosmic37]: you are right $mydt did not contain what I expected... :-D I will now think :-D
[Cosmic37]: crunch...grind... whirr...gnashing metal crunching cogs...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-06-29 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (673 votes). Check out past polls.