"be consistent" | |
PerlMonks |
Re: reformatting tab delimited fileby Cristoforo (Curate) |
on Sep 05, 2011 at 23:24 UTC ( [id://924308]=note: print w/replies, xml ) | Need Help?? |
Text::Table will align your output. Here is a sample program. Also, I used Sort::Naturally so that names with trailing digits will sort correctly, i.e. when they are greater than 1 digit long. Update: in while loop, changed from split on space to split on tabs because thats how the fields are separated.
This prints:
In Section
Seekers of Perl Wisdom
|
|