perl - How do I convert a HTML table to a fixed font textual table? -


I have an app in Perl that reads in HTML based markup and converts it to a text output that I One of the things that has faced is to easily convert an HTML table into a fixed font output.

  & lt; Table range = "1" & gt; & Lt; TR & gt; & Lt; TD & gt; Hello & lt; / TD & gt; & Lt; TD & gt; World & lt; / TD & gt; & Lt; TR & gt; & Lt; TD & gt; Foo & lt; / TD & gt; & Lt; TD & gt; Bar & lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt;  

I am looking for something that can take the above table and make something like that.

  ----------- ------------------- | Hello World | ------------------------------ | Foo | Bar ------------------------------  

I know how to contact this in Pearl Write more procedures to do, but I hope there are some libraries which will already do this for me.

In combination with something I have used with great success, it should be very easy.


Comments