in reply to multiple regex logical AND

BigSwifty00000

the logical AND is &&. Please, see Operators: arithmetic and otherwise

Using a logical AND, your code should read:

perl -nle 'print $ARGV if !$seen{$ARGV}++ ;print if /^JRECOV="yes"/&&/ +^TEOJ=-w"/'

Cheers!

lin0

Replies are listed 'Best First'.
Re^2: multiple regex logical AND
by liverpole (Monsignor) on Dec 12, 2006 at 19:30 UTC
    But how can /^JRECOV="yes"/ and /^TEOJ="-w"/ both be true at the same time?

    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

      Multiline with m/.../m, but that isn't specified, so liverpole++.

      --MidLifeXis