in reply to Re: print format
in thread print format
I am searching on GeneBank data, I got 480 Accession number, for each Accession number, I need two items: item1 and items, so I have the print format like:
because I generate each accession number first, for each accession number, I use foreach loop to generate item1 and item2, maybe some of the accession number have a couple of groups item1 and item2, maybe some of them have none item1 and item2 at all. I tried to use:Accession item1 item2 12345678 abcd1234 als
It printed out so messy. Please help! Thanks!printf ("%08d",$accession);#which is before foreach loop. foreach (@accession){ .... $item1=....; $item2=....; printf("%16s%08s",$item1,$item2); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: print format
by pfaut (Priest) on Apr 22, 2003 at 16:26 UTC |
In Section
Seekers of Perl Wisdom