in reply to Interpreter eval counter out of bounds
"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!)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interpreter eval counter out of bounds
by Jeppe (Monk) on Jan 29, 2011 at 10:19 UTC | |
by Corion (Patriarch) on Jan 29, 2011 at 10:33 UTC | |
by Jeppe (Monk) on Jan 31, 2011 at 08:45 UTC | |
by ikegami (Patriarch) on Feb 02, 2011 at 21:40 UTC | |
by andreas1234567 (Vicar) on Feb 03, 2011 at 10:03 UTC | |
by tye (Sage) on Feb 02, 2011 at 17:27 UTC | |
by ikegami (Patriarch) on Jan 29, 2011 at 18:30 UTC |