in reply to Re: help with search and match (Homework?)
in thread help with search and match
open(FILE1, "$file1") || die "can't open file"; open(FILE2, "$file2") || die "can't open file"; while (<FILE2>) { chomp; @array2= split; while(<FILE1>) { chomp; @array1 = split; } if ($array1[0] eq $array2[0]) print "match\n"; if ($array1[1] == $array[2]) { print $array[1]; } else { print " no match"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (3): help with search and match (Homework?)
by talexb (Chancellor) on Aug 26, 2002 at 17:20 UTC | |
|
Re: Re: Re: help with search and match (Homework?)
by John M. Dlugosz (Monsignor) on Aug 26, 2002 at 18:53 UTC | |
|
Re: Re: Re: help with search and match (Homework?)
by mephit (Scribe) on Aug 26, 2002 at 19:11 UTC |