[prog] Introduction and Perl: Flat File DB Query Question

Kathryn Andersen kat_lists at katspace.homelinux.org
Wed Mar 15 09:11:25 EST 2006


On Tue, Mar 14, 2006 at 09:58:46PM +0000, Sabine Konhaeuser wrote:
> On Tuesday 14 March 2006 20:33, Kathryn Andersen wrote:
> > > My question is now, how do I force this code to not show duplicates? In
> > > SQL I use DISTINCT. Is there some equivalent to DISTINCT for getting
> > > results in flat text files? I could not find anything online. At this
> > > time a DB driven approach is unfortunately not an option for this client.
> >
> > No, there isn't a DISTINCT equivalent, you're just reading in lines from
> > the file.  You would have to do it programatically.
> 
> Where would I start? I'm sort of lost with the whole text file thing.

Alas, I'm not really in a position right now to be of much help, I'm
sick and exhausted and I don't have the mental energy to go through your
code to figure out what it's doing and thus what needs to be changed.

Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe


More information about the Programming mailing list