Search more than one wor in a string

Discussion in 'Perl Misc' started by Jochen Friedmann, Jun 30, 2004.

  1. Hello,

    my problem:

    I am looking for two words in a string var. If there are both words in it I
    want to bring out an error message.

    if (($param =~ m/move/gi)&&($param =~ m/copy/gi)){print "\n --- To much
    parameters /Copy or /Move";}


    Jochen
     
    Jochen Friedmann, Jun 30, 2004
    #1
    1. Advertisements

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. Alan Silver
    Replies:
    4
    Views:
    686
    Alan Silver
    Jul 3, 2005
  2. sachin
    Replies:
    1
    Views:
    483
    Tjerk Wolterink
    Dec 1, 2005
  3. Replies:
    3
    Views:
    446
    teddyj
    Sep 28, 2006
  4. =?ISO-8859-15?Q?Manfred_Preu=DFig?=

    Making one HTML page from more than one file

    =?ISO-8859-15?Q?Manfred_Preu=DFig?=, Apr 19, 2007, in forum: HTML
    Replies:
    18
    Views:
    775
    Steven Saunderson
    Apr 24, 2007
  5. Merciadri Luca
    Replies:
    4
    Views:
    1,039
  6. technoplonker
    Replies:
    1
    Views:
    191
    Alex Goodey
    Jan 19, 2004
  7. Bob Rashkin
    Replies:
    5
    Views:
    259
    Dennis Lee Bieber
    Dec 23, 2013
  8. Replies:
    3
    Views:
    245
    Gary Herron
    Dec 23, 2013
Loading...