|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Personal crypting algorithmby premchai21 (Curate) |
| on Nov 05, 2001 at 17:39 UTC ( [id://123381]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Don't print the results. Returning them instead is a much better idea. What if the caller doesn't want the encrypted / decrypted string printed, but instead wants to do something else with it? Sure, they could do something obfuscated like tie STDOUT so its output goes into a variable, but the idea here (assuming this is not for obfuscation) is to not require the caller to do things like that.
In Section
Code Catacombs
|
|
||||||||||||||||||||||||||||||