in reply to HTML::Element method as_text() not performing as expected on <td> elements

I'm mystified. Any suggestions?

I suggest a healthy dose of consulting the manual :)

dump is a debugging method, it prints output

as_text returns a string

http://search.cpan.org/~jfearn/HTML-Tree-4.2/lib/HTML/Element.pm#$h-%3Edump%28%29

http://search.cpan.org/~jfearn/HTML-Tree-4.2/lib/HTML/Element.pm#$h-%3Eas_text%28%29

  • Comment on Re: HTML::Element method as_text() not performing as expected on <td> elements

Replies are listed 'Best First'.
Re^2: HTML::Element method as_text() not performing as expected on <td> elements
by Anonymous Monk on Aug 31, 2011 at 05:40 UTC
    Wow, good call :) I think I was too tired to realize that difference before, though I had in fact consulted the manual. Thanks!

      Wow, good call :) I think I was too tired to realize that difference before, though I had in fact consulted the manual. Thanks!

      I've been there many times :) mystified is code for erroneous assumption

      Sometimes you know which op/sub you're fuzzy on, so it means a simple perldoc -f split, but sometimes you can't zero in on your unknown, so it means writing a few programs, even if the assumption turns out not to be yours

      Its a good thing perl has features for checking lots of these assumptions, helps me cut my development time in half!