|Perl Monk, Perl Meditation|
runtime problem; elusive errorby perl-diddler (Chaplain)
|on Sep 20, 2007 at 11:29 UTC||Need Help??|
perl-diddler has asked for the wisdom of the Perl Monks concerning the following question:
I have a section of code extracted from a larger prog with this problem. Tried to pare it down as much as possible. The code is this:
When I run it, I get:
If I uncomment the line with "$DBG_INFO, $DBG_KEYS", the program runs as I'd expect and gives output:
debugops = 0x008c
If I put the init of _debug_ops before the "@Vals", then I always get the error from above (i.e. - whether comment is there or not).
I have to be missing something incredibly obvious and just can't see the trees for the forest.
Can anyone see why the above is not working or is something broken in perl (seems too simple to be that).