if ($PARTS eq $ordnum) { #### chomp(@PARTS = ); #### while () { chomp; if ($_ eq $ordnum) { ... #### for $PARTS (@PARTS) { if ($PARTS eq $ordnum) { # assuming 'eq' is correct here $found = 1; last; } }
## chomp(@PARTS = ); ##
## while () { chomp; if ($_ eq $ordnum) { ... ##
## for $PARTS (@PARTS) { if ($PARTS eq $ordnum) { # assuming 'eq' is correct here $found = 1; last; } }