thanks for help splatforeach my $issued_CM_commands (@issued_commands){ my $showconfig; if(index("@showconfig", "$issued_CM_commands")>0) { print "\n--PASS\n"; print "$issued_CM_commands\n"; } else { print "\n--FAIL\n"; print "$issued_CM_commands\n"; } }
In reply to if else statement check an array by sqspat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |