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
should be the following to be equivalent:for my $i (0..3){ $cell = $pmilecsquare if $pmis[$i] eq $o; }
which can be simplified tofor my $i (0..3){ if ($pmis[$i] eq $o) { $cell = $pmilecsquare; last; } }
for (@pmis){ if ($_ eq $o) { $cell = $pmilecsquare; last; } }
|
|---|