http://qs1969.pair.com?node_id=609467

perlknight has asked for the wisdom of the Perl Monks concerning the following question:

Fellow monks, I have this line of code:
if (($STATUS1 & $STATUS2) =~ m/^Running$/i) { print "match\n"; }
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 =~ m/^Running$/i) & ($STATUS2 =~ m/^Running$/i)) { print "match\n"; }