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

Re^5: Making $ Unicode-aware

by jcb (Parson)
on Jul 28, 2020 at 23:40 UTC ( [id://11119923]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Making $ Unicode-aware
in thread Making $ Unicode-aware

So \v is a regex class instead of a character escape. That makes sense, then.

What existing code could changing $ to use \R instead of \n potentially break? Could this raise security issues by widening input validation patterns?

Replies are listed 'Best First'.
Re^6: Making $ Unicode-aware
by jo37 (Deacon) on Jul 29, 2020 at 15:16 UTC
    What existing code could changing $ to use \R instead of \n potentially break? Could this raise security issues by widening input validation patterns?

    A bit difficult to say, as even \n is not just a LF but a "logical newline", as described in perlrebackslash:

    \n matches a logical newline. Perl converts between \n and your OS's native newline character when reading from or writing to text files.
    And because it is so hard to tell I wouldn't want to change the meaning of $ without explicit request to do so for a single regex or within a lexical scope, i.e. by a flag or pragma.

    Greetings,
    -jo

    $gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found