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]
  • Comment on Re^5: Is it safe to use external strings for regexes? (infinite loops)
  • Download Code

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