For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > June 2005 > Is there neq for strings?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Is there neq for strings?
soup_or_power@yahoo.com

2005-06-08, 3:59 pm

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";
}

Arne Ruhnau

2005-06-08, 3:59 pm

soup_or_power@yahoo.com wrote:
> 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com