in reply to Re: Text Columns
in thread Text Columns

This is what I've basically done for now. There are some edge cases that this doesn't handle (I'll explain below). I'm sorta surprised that there is no perl module to do this already so maybe it's time I wrote one. I'd like to take this even further and be able to specify formats printf-like for the values.. It gets complicated quickly when I start thinking about fancy features...

Replies are listed 'Best First'.
Re^3: Text Columns
by swampyankee (Parson) on Nov 28, 2006 at 22:39 UTC

    Sorry my assistance was too elementary. I spend a lot of programming time dealing with i/o issues (it's not uncommon for one of my non-Perl programs to have over 75% of the SLOC dealing with i/o), and writing format statements on the fly is one of my favorite -- and oldest -- tricks in handling i/o.

    emc

    At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.

    —Igor Sikorsky, reported in AOPA Pilot magazine February 2003.