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.
In reply to Re: Comparision Utility PERL
by hippo
in thread Comparision Utility PERL
by vighneshmufc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |