Is there neq for strings?

Discussion in 'Perl Misc' started by soup_or_power@yahoo.com, Jun 8, 2005.

  1. Guest

    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";
    }
    , Jun 8, 2005
    #1
    1. Advertising

  2. Arne Ruhnau Guest

    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
    Arne Ruhnau, Jun 8, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kurt Krueckeberg
    Replies:
    2
    Views:
    706
    =?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?=
    Nov 17, 2004
  2. Rick

    Comparing strings from within strings

    Rick, Oct 21, 2003, in forum: C Programming
    Replies:
    3
    Views:
    375
    Irrwahn Grausewitz
    Oct 21, 2003
  3. Klaus Neuner
    Replies:
    7
    Views:
    486
    Klaus Neuner
    Jul 26, 2004
  4. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    754
    Malcolm
    Jun 24, 2006
  5. Berk Birand

    Perl neq Python

    Berk Birand, Apr 7, 2004, in forum: Perl Misc
    Replies:
    8
    Views:
    127
    Michele Dondi
    Apr 9, 2004
Loading...

Share This Page