in reply to Re: while statement only picks up first line
in thread while statement only picks up first line
Doing "grep ..., @partners" for every line of the input file (as suggested in an earlier reply) is also a bit short on efficiency, if @partners has a lot of elements. Based on what the OP seems to be trying to do, a hash would be better than an array:
... print ... if ( exists( $partners{$usernamedb} ));
|
|---|