There's more than one way to do things | |
PerlMonks |
Re^5: Using variables in array namesby shemp (Deacon) |
on Aug 05, 2005 at 17:50 UTC ( [id://481309]=note: print w/replies, xml ) | Need Help?? |
In regard to typos in hash keys, i have used various tied hashes that require registering any key before it is used. The definition of 'used' varies from implementation to implementation. In some cases i'd let it ask for existence of a non-registered key, but in other implementations, any action on a non-registered key is fatal. Etc, Etc, Etc.
My use of this approach is pretty rare, and is not perfect because its run-time checks, but in certain critical apps (such as bulk changes to my data warehouse) this approach can be advantageous. I guess it comes down to a trade off of ease of use vs. level of checking.
I use the most powerful debugger available: print!
In Section
Seekers of Perl Wisdom
|
|