data67 has asked for the wisdom of the Perl Monks concerning the following question:
I wam trying to build a drop down menu that will be filled by a column from a flat file that i have. i have done this b efore with DBI/datebases etc but this is different because i have to do this without sql.
PROBLEM
The file format looks something like this:
ID0!NAME0!CLASS0!INSTRUCTOR0 ID1!NAME1!CLASS1!INSTRUCTOR1 ID2!NAME2!CLASS2!INSTRUCTOR2 ID3!NAME3!CLASS3!INSTRUCTOR3 ID4!NAME4!CLASS4!INSTRUCTOR4 ID5!NAME5!CLASS5!INSTRUCTOR5
..INSTRUCTOR0 ..INSTRUCTOR1 ..INSTRUCTOR2 ..INSTRUCTOR2 ..INSTRUCTOR3 ..INSTRUCTOR3 ..INSTRUCTOR4 ..INSTRUCTOR5 ..INSTRUCTOR5 ..INSTRUCTOR5 ..INSTRUCTOR5
I know this is very basic stuff but i cant seem to figure out how to extract DISTINCT fields from a flat file column. Thank you!..INSTRUCTOR0 ..INSTRUCTOR1 ..INSTRUCTOR2 ..INSTRUCTOR3 ..INSTRUCTOR4 ..INSTRUCTOR5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: building Drop down menu - from a flat file
by jeffa (Bishop) on Jul 24, 2002 at 16:18 UTC | |
by data67 (Monk) on Jul 24, 2002 at 18:13 UTC | |
by jeffa (Bishop) on Jul 25, 2002 at 05:34 UTC | |
|
Re: building Drop down menu - from a flat file
by gryphon (Abbot) on Jul 24, 2002 at 16:20 UTC | |
|
Re: building Drop down menu - from a flat file
by VSarkiss (Monsignor) on Jul 24, 2002 at 16:22 UTC | |
|
Re: building Drop down menu - from a flat file
by fuzzyping (Chaplain) on Jul 24, 2002 at 18:59 UTC | |
|
Re: building Drop down menu - from a flat file
by grep (Monsignor) on Jul 24, 2002 at 16:11 UTC | |
by data67 (Monk) on Jul 24, 2002 at 17:59 UTC | |
|
Re: building Drop down menu - from a flat file
by dda (Friar) on Jul 24, 2002 at 16:13 UTC |