in reply to Proper use of And
I can see several typos. It should look like:if ($Session->{'usrType'} eq 'Pro') and ($Session->{'usrSystem' =~/SEF/VAL/SUM/SAR/MRT/ALB/MRE/VER/RML/AUS +/ORG/MSX/BAR/LAS/) {do something}
You should always use use strict; use warnings; If there's still a problem, have you considered displaying the values of $Session->{usrType} and $Session->{usrSystem}?if ( ($Session->{'usrType'} eq 'Pro') and ($Session->{'usrSystem'} =~/SEF/VAL/SUM/SAR/MRT/ALB/MRE/VER/RML/AU +S/ORG/MSX/BAR/LAS/)) {do something}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Proper use of And
by Anonymous Monk on Jan 09, 2008 at 20:55 UTC |