in reply to runtime problem; elusive error
A small clue: the nastiness is in, or is related to Readonly. If you can do without the read only stuff the code works as expected. If you instead:
use strict; use warnings; use constant DBG_ANY => -1; use constant DBG_INFO => 0x0004; use constant DBG_KEYS => 0x0008; use constant DBG_RAND => 0x0080; my @Vals = ( DBG_ANY, 1, 2, DBG_INFO, DBG_KEYS, ); my $_debug_ops = (DBG_RAND | DBG_KEYS | DBG_INFO); printf "debugops = 0x%04x\n",$_debug_ops;
it prints:
debugops = 0x008c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: runtime problem; elusive error
by grinder (Bishop) on Sep 20, 2007 at 14:31 UTC | |
|
Re^2: runtime problem; elusive error
by perl-diddler (Chaplain) on Sep 20, 2007 at 16:53 UTC | |
by almut (Canon) on Sep 20, 2007 at 17:44 UTC | |
by ikegami (Patriarch) on Sep 20, 2007 at 19:16 UTC |