Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What I would like to be able to do is sort them by the first letter of the $Field{'Artist'} field. Any help would be greatly appreciated. Cheers, Lloyd.open(LOGFILE, $list); @entries = <LOGFILE>; close LOGFILE; &header; foreach $line (@entries) { @fields = split(/\|/,$line); %field = (CassID => $fields[0], CDID => $fields[1], Category => $fields[2], Title => $fields[3], Image => $fields[4], Description => $fields[5], CASS_Price => $fields[6], CD_Price => $fields[7], Artist => $fields[8], CASS_CatNo => $fields[9], CD_CatNo => $fields[10], Database => $fields[11], Label => $fields[12], ID => $fields[13], ); foreach ($line) { print <<EOHtml; html stuff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting on a particular field from a Flat File db??
by Russ (Deacon) on Nov 04, 2000 at 21:11 UTC | |
|
RE: Sorting on a particular field from a Flat File db??
by footpad (Abbot) on Nov 04, 2000 at 23:25 UTC | |
|
Re: Sorting on a particular field from a Flat File db??
by JP Sama (Hermit) on Nov 04, 2000 at 22:05 UTC |