Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: regex in list context

by LanX (Canon)
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


Comment on Re^3: regex in list context
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://803838]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2014-07-13 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (246 votes), past polls