develooper Front page | perl.beginners | Postings from February 2002

Format list ?

Thread Next
From:
Guru^garzaH
Date:
February 5, 2002 21:42
Subject:
Format list ?
Message ID:
002101c1aed0$d6c28f30$6301a8c0@guru2
Say I have a list like this
DOG    FEMALE DALMATION    62 POUNDS    299.00    320.00
DOG    FEMALE DALMATION    12 POUNDS    280.00    320.00
DOG    GERMAN SHEPARD    48 POUNDS    290.00    330.00
CAT   FEMALE PERSIAN     8 POUNDS    219.00    300.00
CAT    MALE CALICO     9    POUNDS    219.00   300.00
CAT    MALE SIAMESE    12 POUNDS    219.00    300.00

I want to format say like this
DOG
----------------------------------------------------------cost----------retail
Dalmation---------------

Female dalmation 62                            299.00        320.00
Female dalmation 12                            280.00        320.00

German Shepard------

German Shepard  48                             290.00        330.00


Cat
-----------------------------------------------------------------------------------
Calico--------------------
 Calico   9                                               219.00   300.00

I hope that this provides enough information

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About