"Will not stay shared" is a warning that indicates one made the error of nesting nesting named subs. Specifically, it is issued when an inner named sub captures vars from the outer sub.
$ perl -we'sub outer { my $x; sub inner { $x } }' Variable "$x" will not stay shared at -e line 1.
Don't nest named subs. It's not like inner is private to outer.
"Global symbol requires explicit package name" is an error detected by "use strict;".
$ perl -we'use strict; $i' Global symbol "$i" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors.
Loading Carp::Always might be a simple way of getting useful diagnostics.
I notice the eval counter (if such a thing exists) in each case seems to be very close to 10**9.
109 is not a particularly interesting number to computers. If it was 22n or 22n-1 (e.g. 28, 215, 216, 231, 232, etc), then it would get my attention.
(Why oh why do you generate and execute so many code snippets!)
In reply to Re: Interpreter eval counter out of bounds
by ikegami
in thread Interpreter eval counter out of bounds
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |