in reply to while statement only picks up first line
Update: Sorry -had to dash away...
But this may not be very efficient...while (@partners){ my $item = shift (@partners); while (<FH>) { my ($usernamedb,$surname,$firstname,$secondname)=split (/\t/,$_); if ($item eq $usernamedb) { print qq{$firstname $secondname $surname }; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: while statement only picks up first line
by graff (Chancellor) on Feb 06, 2004 at 04:27 UTC |