in reply to examine cell's content in HTML::TableExtract

Do you have to use that module, or would you consider Mojo::DOM? I've got several posts (Super Search is your friend) using mojo to process the contents of tables, e.g. Download free Microsoft ebooks, fun with Mojolicious and CSS selectors. If you get stuck post the HTML for an example of the page/table you're working with.

  • Comment on Re: examine cell's content in HTML::TableExtract

Replies are listed 'Best First'.
Re^2: examine cell's content in HTML::TableExtract
by limner (Novice) on Mar 27, 2018 at 09:42 UTC
    Good morning and thanks to all

    i have no costrictions/obligations in using HTML::TableExtract module, i can use any
    module i want to have my result, but the thing that i need is to have, at the end, the
    possibility to manipulate every cell of the table.

    I have to say that i am not familyar with de/refecenfes of arrays (@$var).

    for example, if i try to print the result of my software, what i obtain is the
    printing of all table or the printing of all column without the possibility of
    printing only one cell (and manipulate it)
    I will start study Mojo::DOM, why do you think is the best solution?

    Limner

      "if i try to print the result of my software, what i obtain is the printing of all table or the printing of all column without the possibility of printing only one cell (and manipulate it)"

      In the link I gave you the code either prints or manipulates before using the value of stored within <td> tags. Did you look at this?

      "I will start study Mojo::DOM, why do you think is the best solution?"

      I didn't say it was the best solution, but it makes dealing with data like this trivial, even for complex selectors (the example previously given has details of a reasonable complex selector).