Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: "Unescaped left brace in regex is deprecated"

by Anonymous Monk
on Jul 18, 2015 at 00:36 UTC ( #1135262=note: print w/replies, xml ) Need Help??


in reply to "Unescaped left brace in regex is deprecated"

From the perldelta for Perl v5.22.0:

A literal { should now be escaped in a pattern

If you want a literal left curly bracket (also called a left brace) in a regular expression pattern, you should now escape it by either preceding it with a backslash (\{) or enclosing it within square brackets [{], or by using \Q; otherwise a deprecation warning will be raised. This was first announced as forthcoming in the v5.16 release; it will allow future extensions to the language to happen.

But ... what is grep /$_/, @wf supposed to be doing?

Replies are listed 'Best First'.
Re^2: "Unescaped left brace in regex is deprecated"
by stevieb (Abbot) on Jul 18, 2015 at 00:50 UTC

    I'm going to stop playing for today... right from the morning, it hasn't been my day. The silliness of what I've been attempting to do is ridiculous. We all have these days, right?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-09-21 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (185 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!