Sort of. You can obfuscate the code making it beyond difficult to read unless you know about Wily Coyote and the guys at CPAN. Check out acme::bleach, acme::buffy, and acme::eye_drops. The last one NOT requiring the acme::eye_drops module to run the obfuscated code. buffy & bleach have to run the Frankenstein code they generated.
Cartoons are always more fun than coding, except when coding creates cartoons....
-f, --filter=FILTER
Filter source script(s) with a PAR::Filter subclass. You may
specify multiple such filters.
If you wish to hide the source code from casual prying, this will
do:
% pp -f Bleach source.pl
If you are more serious about hiding your source code, you should
have a look at Steve Hay's PAR::Filter::Crypto module. Make sure
you understand the Filter::Crypto caveats!
I have used pp , but not for hiding ... cheers, drl