Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Next i want to take the file 'validate' again two columns ID and name and map this file onto each of the three filex files and print those entries which are present in file1-3. This is the problemforeach $file (@find) { open (open, "<upload_profile/$file") or die $!}; while (<open>) { ($name, $ID) = (split)...; $data{$file} = {$ID => $name}; } close (open); }
Any help would be usefulopen (ORI, "<validate); while (<ORI>) { ($oriName, $oriID) = (split); for $temp (keys %data) { for $identify ( keys %{ $data{$temp} } ) { print " Match $identify=$data{$temp}{$identify} " if (ex +ists $data{$temp}{$oriID});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HoH problem
by ikegami (Patriarch) on Nov 07, 2006 at 17:45 UTC | |
|
Re: HoH problem
by madbombX (Hermit) on Nov 07, 2006 at 18:31 UTC | |
|
Re: HoH problem
by graff (Chancellor) on Nov 08, 2006 at 02:02 UTC | |
by Anonymous Monk on Nov 08, 2006 at 09:26 UTC |