in reply to About Tabbed Printing
The old-school solution is to use Perl formats. For your example, you could write:
my @aoa = ( [qw (GAL_up800.fasta 6 800 4.8)], [qw (hm01g.fasta 18 2008 36.144)], [qw (hm02r.fasta 9 1000 9)], [qw (train_muscle.fasta 7 50 0.35 )], ); my $aref; # Variable must be visible to the format format STDOUT = @<<<<<<<<<<<<<<<<<<<<<< @<<<<<< @<<<<<< @<<<<<< @$aref . foreach $aref (@aoa) { write; }
For a more contemporary solution, why not try Perl6::Form? It looks very nice from what I've seen.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: About Tabbed Printing
by ikegami (Patriarch) on Dec 12, 2005 at 16:03 UTC | |
by robin (Chaplain) on Dec 12, 2005 at 16:29 UTC | |
by ikegami (Patriarch) on Dec 12, 2005 at 16:47 UTC |
In Section
Seekers of Perl Wisdom