Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile eval group RegExp at runtime #62

Open
atoomic opened this issue Jul 18, 2017 · 0 comments
Open

Cannot compile eval group RegExp at runtime #62

atoomic opened this issue Jul 18, 2017 · 0 comments

Comments

@atoomic
Copy link
Collaborator

atoomic commented Jul 18, 2017

$a = qr/(?{++$b})/;
$b = 7;
print qq[ok\n] if /$a$a/ && $b eq '9';

oneliner

> perlcc -r -e '$a = qr/(?{++$b})/; $b = 7; print qq[ok\n] if /$a$a/ && $b == 9;'
Eval-group not allowed at runtime, use re 'eval' in regex m/(?^:(?{++$b}))(?^:(?{++$b}))/ at -e line 1.

we are recompiling the RegExp at INIT time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants