Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Is there neq for strings?

Reply
Thread Tools

Is there neq for strings?

 
 
soup_or_power@yahoo.com
Guest
Posts: n/a
 
      06-08-2005
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";
}

 
Reply With Quote
 
 
 
 
Arne Ruhnau
Guest
Posts: n/a
 
      06-08-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If line 7 NEQ B, insert newline - how? John Bartley K7AAY Computer Support 5 03-11-2008 04:33 AM
Is there a java.util.Scanner that works in 1.4.2 out there? Danno Java 2 04-26-2006 04:41 AM
is there a hardware / driver combination out there the lets win2k connect to the network before login?? christiane kewitz Wireless Networking 1 02-13-2005 01:08 AM
Perl neq Python Berk Birand Perl Misc 8 04-09-2004 07:00 AM
Are there any free .pdf writers out there Goonigoogoo Computer Support 5 11-22-2003 03:27 AM



Advertisments