Anyone who can read/write the script can hack it to avoid your checking mechanisms. There's no use in copy protecting your scripts.
Same goes for Java, as even .class files can be decompiled.
see this page or this one for examples.
"
Only
Bad
Coders
Code
Badly
In
Perl" (OBC2BIP)