Muzammil Rehman
New member
Hi all
I am new to perl programing , need help with if condition to match multiple strings.
Code is something like
if ($var ne "abcd" || $var ne "qprs")
{ somthing; }
else { someting; }
if this is not suppose to work anything else i can try ?
$var should match / compare with multiple strings and if any of them dont match move to else statment
I am new to perl programing , need help with if condition to match multiple strings.
Code is something like
if ($var ne "abcd" || $var ne "qprs")
{ somthing; }
else { someting; }
if this is not suppose to work anything else i can try ?
$var should match / compare with multiple strings and if any of them dont match move to else statment