local doesn't work on my'd vars, only globals. Change my $cnt; to our $cnt; and the panic goes away and your example runs fine.
In reply to Re: (?{...code..}) regex construct causing panic: top_env in 5.8.2
by BrowserUk
in thread (?{...code..}) regex construct causing panic: top_env in 5.8.2
by leriksen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |