Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Need help with a conceptual speed bumpby mstone (Deacon) |
on May 03, 2005 at 23:33 UTC ( [id://453775]=note: print w/replies, xml ) | Need Help?? |
Incidental question. Why are you returning the string 'SUCCESS' rather than just using true/false normally? Readability in the sample code. In real life, I'd probably return undef for success, an arbitrary error description string for failure, and use if ($result->{$key}) to scan for errors. I do prefer human-readable error messages over simple booleans, though. They give me better feedback, and more ways to track down errors while debugging. Your brick upside the head is appreciated, though. That's two people whose opinions I respect not telling me that I've gone completely wacko. Thanks.
In Section
Seekers of Perl Wisdom
|
|