in reply to Re^2: Regarding the conditional part of eslif (or if) statement
in thread Regarding the conditional part of eslif (or if) statement

for my $i (0..3){ $cell = $pmilecsquare if $pmis[$i] eq $o; }
should be the following to be equivalent:
for my $i (0..3){ if ($pmis[$i] eq $o) { $cell = $pmilecsquare; last; } }
which can be simplified to
for (@pmis){ if ($_ eq $o) { $cell = $pmilecsquare; last; } }