This is not something one can resolve by "technology" alone.
in reply to perl2exe - no more secrets
To hide your source code does not stop pirating any way. Most of the time, they don't care your source code at all, what they want to steal is the functionality your code delivers. What they want is money without effort, to study your source code is too long a way to go.
Computer does not change the very nature of the human society. You go one step forward, your "friends" will go two steps forward.