S
Shashank Khanvilkar
Hi,
I think i am doing something wrong here. Can anyone please let me know what
$a = "apple";
if ($a eq ('apple')){
print "right choice\n";
}else{
print "wrong choice\n";
}
This above prints "right choice". But the below prints "wrong choice".
How can i make the below program print "right choice".
$a = "apple";
if ($a eq ('apple'|'banana')){
print "right choice\n";
}else{
print "wrong choice\n";
}
I think i am doing something wrong here. Can anyone please let me know what
$a = "apple";
if ($a eq ('apple')){
print "right choice\n";
}else{
print "wrong choice\n";
}
This above prints "right choice". But the below prints "wrong choice".
How can i make the below program print "right choice".
$a = "apple";
if ($a eq ('apple'|'banana')){
print "right choice\n";
}else{
print "wrong choice\n";
}