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

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?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2018-12-13 15:06 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (62 votes). Check out past polls.