chiel 写道:

> 
> if ($$result_t{$operating_descr.".".$index} =~ /PCMCIA/ || /USB/ &&
> $tmp_status == 3) {
> 

Hi,

=~ is going with higher PRI than ||.

$x =~ /Y/ || /Z/;

is the same as:

$x =~ /Y/ || $_ =~ /Z/;


so you should say:

$x =~ /Y|Z/;

or,

$x =~/Y/ || $x =~/Z/;


HTH.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to