Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

  (email not shown publicly)

Journal of djberg96 (2603)

Sunday June 08, 2003
11:17 AM

html-table "port"

[ #12693 ]
I don't do a lot of HTML stuff, but when I do it usually involves creating a table. I've used HTML::Table in the past and found it very handy. Consequently, I decided to "port" it to Ruby.

I've got a working version now, though I wouldn't really call it a "port". At the end of the day, it's probably best to call it "inspired by". The internals are nothing alike, and the API is similar but by no means identical. I adopted a much more OO approach, in that a Table is an object, TableRow is an object, TableData is an object, etc.

The end result is probably a much more "widget-like" interface than the Perl version and even lets me do some things I don't think are possible in HTML::Table, like delete a row or configure a row on the fly, instead of configuring it after-the-fact.

All this has given me some ideas to share with Anthony Peacock (current maintainer of HTML::Table), though I fear a major re-write of the internals would be necessary.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Would it be hard to port your new Ruby module back to Perl?
    • Not really, but it would basically mean scrapping the current implementatin entirely. Since it's Anthony's module, I don't know how keen he would be to change the API or accept wholesale code changes.

      In any case, I'm going to wait for feedback from the Ruby community to see how they like things before making suggestions to Anthony.