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

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top