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 ]

cog (4665)

Journal of cog (4665)

Monday July 25, 2005
10:06 AM

Introducing... er... my new module

[ #25877 ]

It would be on its way to the CPAN right now if I had decided on a name for it.

Basically, it takes ASCII Art (as an example, merlyn's face) and returns an HTML table.

You get the picture so far? Wait, that's not all it does.

You can specify a bunch of options. Another sample: Portuguese flag in ASCII gets turned into a small little table.

Wait, we're not done yet. Suppose you feed it itself and tell it to randomize colors it doesn't know. Here's the result.

But wait, we're not done yet.

Now suppose you're thinking "Yeah, well, that looks cool, but the bigger it gets, the bigger the HTML file, and pretty soon my browser won't be able to handle it properly and will start complaining about it."

Hold your horses, pal! It's time for Table Optimization!

Take this for an example input. That would turn out more or less like this, right? Well, not if you turn on the table optimization feature.

Here's acme's face without optimization. Here it is with optimization.

And that's what keeps this example (acme, autrijus, damian, larry, merlyn, schwern) at ~70k, instead of over 400.

Ideas for the module's name and its main function appreciated.

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.
  • Convert::ASCII::HTMLTable



  • Cool one ..

    let me try a name ;-)

  • Did you pick one out?
  • Acme-AsciiArt2HtmlTable
    • Yes :-)

      It's an Acme module, which means I don't have to be too serious about it, it describes (more or less) what it does... you don't like the name? :-)

      Lots of people suggested interesting names, and I might have chosen the wrong one, but hey, it wasn't easy... O:-)

      There will be a version 0.02 one of these days... with some interesting updates, I hope :-) I might post something on my journal then, if I find it suitable :-)