Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: I THOUGHT I'd finally understood genex

by AnomalousMonk (Archbishop)
on Jan 09, 2018 at 17:01 UTC ( [id://1206994]=note: print w/replies, xml ) Need Help??


in reply to Re^2: I THOUGHT I'd finally understood genex
in thread I THOUGHT I'd finally understood regex

I thought by using a string at the top for the expression I was making it easier to read.

Even without the confounding  m/ / pieces in the string, it's almost never a good idea to use either a single- or double-quoted string to define a regex if you can avoid it; many subtle pitfalls lurk there. Use the  qr// operator instead; see Regexp Quote-Like Operators in perlop.


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-23 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found