grashoper has asked for the wisdom of the Perl Monks concerning the following question:
if ($Session->{'usrType'} eq 'Pro') and ($Session->{'usrSystem'}=~/SEF +/VAL/SUM/SAR/MRT/ALB/MRE/VER/RML/AUS/ORG/MSX/BAR/LAS/)){$Response->wr +ite('found a match!'}
this won't work whether I use and or && I am not sure why it seems everything I do is a syntax error.. are my parens out of whack? something is still wrong..
here is my revised version..
if (($Session->{'usrType'} eq 'Pro') and ($Session->{'usrSystem'}=~/SE +F|VAL|SUM|SAR|MRT|ALB|MRE|VER|RML|AUS|ORG|MSX|BAR|LAS/); { $Response->Write("found a match"); }
Edit: g0n - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Proper use of And
by philcrow (Priest) on Jan 09, 2008 at 20:43 UTC | |
|
Re: Proper use of And
by apl (Monsignor) on Jan 09, 2008 at 20:47 UTC | |
by Anonymous Monk on Jan 09, 2008 at 20:55 UTC | |
|
Re: Proper use of And
by apl (Monsignor) on Jan 09, 2008 at 23:25 UTC | |
|
Re: Proper use of And
by apl (Monsignor) on Jan 09, 2008 at 21:38 UTC | |
by f00li5h (Chaplain) on Jan 10, 2008 at 05:58 UTC |