in reply to Comparision Utility PERL
Kindly guide
Since it's trivial:
for my $fieldnum (0 .. $#fields) { if ( exists $hash{ $fields[$fieldnum] } ) { print $fh "$row\n"; next; } }
Untested, since the original code provided is not an SSCCE.
Update: Note that vighneshmufc has altered the parent post to change the spec. This and the rest of the subthread may make less sense than originally.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Comparision Utility PERL
by vighneshmufc (Acolyte) on Feb 09, 2018 at 09:08 UTC | |
by hippo (Bishop) on Feb 09, 2018 at 09:16 UTC | |
by vighneshmufc (Acolyte) on Feb 09, 2018 at 09:56 UTC | |
by hippo (Bishop) on Feb 09, 2018 at 10:03 UTC | |
by vighneshmufc (Acolyte) on Feb 09, 2018 at 10:27 UTC | |
| |
by vighneshmufc (Acolyte) on Feb 09, 2018 at 09:33 UTC | |
by hippo (Bishop) on Feb 09, 2018 at 09:42 UTC |
In Section
Seekers of Perl Wisdom