Beast wrote:
As you can see, the step will increase as the number of manager increase.
Sorry, it should be: foreach my $emp (@employees) { foreach my $mgr (@managers) { if ($mgr eq $emp) { print "$emp is Manager\n"; next; } print "$emp is Staff\n"; } -- --beast -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>