in reply to how to encryption script

It is called "obfuscation". Search on that in super-search and you will find more examples.

It is not really about encrypting the script, rather more to show off your coding skills.

It is possible because Perl is an (almost) free form language where you can add whitespace and line-feeds (almost) everywhere so you can lay-out your script in funny ways. To see through all this eye-candy, one usually employs the B::Deparse module which "decompiles" the script and shows a more classical representation of the script.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James