in reply to Re^9: Here is a commercial obfuscator
in thread Here is a commercial obfuscator
That's easy! A few weeks prior I wanted something similar so all my variable names and such were replaced with flower names. My thought was to post it under Cool Uses for Perl or such and say that it produced "fragrant" code or something silly. Added That's most of the functionality of B::D right there.
Some of the non-obfu code I've had to maintain in the past would have probably been improved by passing it through B::D! It amazes me how bad some production perl code can be.
If you want some suggestions for improvements :-)
You make a stab at adding the appropriate suffixes to the variables (_hashref, _arrayref, _scalarref, etc.). You should be able to get some idea by looking at the way they're dereferenced.
You could also take a look at how variables are used in functions and give them more useful names, e.g. translate close $x173ed to close $fh_2.
Give longer variable names to variables with larger scope.
ucfirst any variable name with package scope.
uc anything created with use constant.
uc any FILEHANDLES
|
|---|