Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^7: Is it safe to use external strings for regexes?

by LanX (Sage)
on Oct 08, 2021 at 10:01 UTC ( #11137339=note: print w/replies, xml ) Need Help??


in reply to Re^6: Is it safe to use external strings for regexes?
in thread Is it safe to use external strings for regexes?

As I said, I'm thankful that your change rules out

''=~ ( '(?{B' . 'EGIN{print "owned"}})' )

to happen.

Like this I have a chance to statically check for BEGIN or use re before running perl -c

(sorry eyepopslikeamosquito :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2022-05-25 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?