Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: Is it safe to use external strings for regexes? (infinite loops)

by choroba (Cardinal)
on Oct 11, 2021 at 15:40 UTC ( [id://11137421]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Is it safe to use external strings for regexes? (infinite loops)
in thread Is it safe to use external strings for regexes?

Maybe. It doesn't loop even on 5.16.3 which is the oldest Perl easily available to me.

Update: 5.10.1 neither.

Update2: It loops in 5.6.2!

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^6: Is it safe to use external strings for regexes? (infinite loops)
by LanX (Saint) on Oct 11, 2021 at 15:41 UTC
    I always thought we need tests for snippets in perldocs too.

    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://11137421]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found