Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Coding style: truth of variable nameby davies (Prior) |
on Apr 19, 2020 at 18:03 UTC ( [id://11115806]=note: print w/replies, xml ) | Need Help?? |
I read unvalidated into one variable and then put it into a validated variable when I call the validation routine. The variables differ only in their prefix. I learned this from https://www.joelonsoftware.com/2005/05/11/making-wrong-code-look-wrong/, which is still worth reading. Here's a pseudocode example:
Regards, John Davies
In Section
Seekers of Perl Wisdom
|
|