Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: regex in list context

by LanX (Bishop)
on Oct 29, 2009 at 00:17 UTC ( #803838=note: print w/replies, xml ) Need Help??

in reply to Re^2: regex in list context
in thread regex in list context

Now that I see the answer I remember discussing this issue and IMHO it makes some sense.

What kind of list should be the logical result of a doesn't-match operator?

Anyway it breaks the believe in orthogonality and that doubling negations leads to the same results...

... which is indeed not exceptional in perl's "DWIM universe".

So the OP should better use unless and =~.

Cheers Rolf

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://803838]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2018-03-24 01:08 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (297 votes). Check out past polls.