in reply to Re: undefined hash elements
in thread undefined hash elements

thank you very much - I really like the term you use "defensive coding". that sums up just what I was trying to achive here. In my perl coding i want to develop more defensive coding parctices. This is alot of beef to chew on - it should keep me feed for days.

Replies are listed 'Best First'.
Re^3: undefined hash elements
by marinersk (Priest) on Dec 20, 2013 at 04:51 UTC
    This particular form of defensive programming is sometimes called "fortressing", meaning it tries to keep bad data from getting in. The reciprocal function is called, if memory serves, "dungeoning", which is trapping bad data where it can do no harm. I don't know if I can think of any examples of where that approach serves much use -- which probably means I don't know as much about it as I thought I did. :-)