Is there neq for strings?

S

soup_or_power

Is there neq "not equal" operator in Perl?
I want to do something like this:

$a="mystring";
if ($a eq "abc") {
print "hello";
} elsif ($a neq "bcd") {
print "hello2";
}
 
A

Arne Ruhnau

Is there neq "not equal" operator in Perl?
I want to do something like this:

$a="mystring";
if ($a eq "abc") {
print "hello";
} elsif ($a neq "bcd") {
print "hello2";
}

Is there documentation available on your system?

perldoc perlop

Arne Ruhnau
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,631
Members
45,338
Latest member
41Pearline46

Latest Threads

Top