On Wed, Feb 18, 2009 at 12:58:46PM -0800, Ovid wrote: > Mostly agreed. Objects should be about responsibilities (behavior) and not > so much about state (data). That being said, hashes are notorious for > $gimme->{feild} (note the misspelling)
Tie::Hash::Vivify is useful for detecting this: my $hashref = Tie::Hash::Vivify->new(sub { confess("No auto-vivifying (did you mis-spell something?)\n".Dumper(\...@_)) }); I found that excellent module after spending *hours* tracking down a typo deep in the guts of CPU::Emulator::Z80. -- David Cantrell | Enforcer, South London Linguistic Massive Repent through spending