perlknight has asked for the wisdom of the Perl Monks concerning the following question:
Is the above doing what I think it is doing, making sure that both status1 and status2 is matches the expression "Running"? Or should I be explicit about it, like so:if (($STATUS1 & $STATUS2) =~ m/^Running$/i) { print "match\n"; }
if (($STATUS1 =~ m/^Running$/i) & ($STATUS2 =~ m/^Running$/i)) { print "match\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: comarison synthax question
by bobf (Monsignor) on Apr 11, 2007 at 20:41 UTC | |
|
Re: comarison synthax question
by Fletch (Bishop) on Apr 11, 2007 at 20:42 UTC | |
|
Re: comarison synthax question
by thezip (Vicar) on Apr 11, 2007 at 20:47 UTC | |
|
Re: comarison synthax question
by Krambambuli (Curate) on Apr 11, 2007 at 20:41 UTC | |
|
Re: comarison synthax question
by ptum (Priest) on Apr 11, 2007 at 20:43 UTC |