Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The array value itself contains double quote in it. is the if condition which i write is correct ?$fields[6] = '"KBBM"'; if (@fields[6] =~ ('"KOTB"' or '"KBBA"' or '"KBBC"' or '"KBBM"' or '"K +BBT"')) { print "Inside the Check" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: is this right ?
by Corion (Patriarch) on May 05, 2008 at 09:20 UTC | |
|
Re: is this right ?
by moritz (Cardinal) on May 05, 2008 at 09:21 UTC | |
|
Re: is this right ?
by FunkyMonk (Bishop) on May 05, 2008 at 10:17 UTC | |
|
Re: is this right ?
by apl (Monsignor) on May 05, 2008 at 11:32 UTC | |
|
Re: is this right ?
by swampyankee (Parson) on May 05, 2008 at 11:58 UTC |