in reply to Re: Re: VVP asks Unique field data?
in thread VVP asks Unique field data?
I think that'll do the trick for you#!/bin/perl -w use strict; open(FILE,"myfile") or die "Couldn't open myfile"; my %first_record_hash; while (<FILE>) { my @array = split '|'; if ($first_record_hash{$array[0]} < 6) { #insert record into database $first_record_hash{$array[0]}++; } else { next; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: VVP asks Unique field data?
by Anonymous Monk on Feb 10, 2002 at 23:40 UTC |