mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, Having trouble trying to figure out best way to validate a csv file is good based on two csv fields.
field1 field2 3-2000/7.48 1 3-2000/7.48 2 3-2000/7.48 2 3-2000/7.48 2 3-2000/7.48 2 3-2000/7.48 2 3-2000/7.48 2 3-2000/7.48 3 4-0000/8.40 2 4-0000/8.40 2 4-0000/8.40 2 4-0000/8.40 2 4-0000/8.40 2 4-0000/8.40 2 4-0000/8.40 3
to be able to say file is good, each unique ID "field1" will need have a field2 at some point that is 1 and 3. this example above 3-2000 has a record of both a 1 and 3 in field2 however 4-0000 does not have a record with 1 in field2 Ideas suggestions? Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: validating file with perl
by space_monk (Chaplain) on Jul 17, 2013 at 05:47 UTC | |
|
Re: validating file with perl
by farang (Chaplain) on Jul 16, 2013 at 22:15 UTC | |
|
Re: validating file with perl
by mtmcc (Hermit) on Jul 16, 2013 at 22:23 UTC | |
|
Re: validating file with perl
by Anonymous Monk on Jul 16, 2013 at 22:25 UTC | |
by Cristoforo (Curate) on Jul 16, 2013 at 22:47 UTC | |
|
Re: validating file with perl
by kcott (Archbishop) on Jul 17, 2013 at 10:59 UTC | |
|
Re: validating file with perl
by si_lence (Deacon) on Jul 17, 2013 at 12:26 UTC |