in reply to == works where it shouldn't but eq doesn't where it should

You left out a lot of detail, like the rest of the code. The comparison $member == $who is legitimate syntax, and if I make some assumptions about the surrounding code, it works fine here.

use strict; my @ops = ( 1 .. 20 ); my $who = 10; my $op; foreach my $member (@ops) { if ($member == $who) { $op = 1; last; } } print "Found one\n" if $op;

Perhaps you could give us more detail to work with?

Scott