September 30, 2005

Duh - Note To Self

If you are working in PERL (or any scripting program, I imagine) and you are running through an if-then-else loop, make sure you are checking the right value for the parameter.

For instance; if you are testing the values ("7" "orange" "cats") & ("15" "pink" "baboons") through a loop that is designed to catch any "cats" that come through, you want to make sure your script isn't checking to see if the second value ("orange", "pink") matches the criteria ("cats").

Trust me on this, you might not get an error message, but you won't get your desired result either. It can screw you up for quite a while if you are already distracted.

Posted by Vox at September 30, 2005 01:54 AM | work
Comments