Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: many exe files rely on one library

by thomas895 (Chaplain)
on Oct 14, 2012 at 09:24 UTC ( #998943=note: print w/replies, xml ) Need Help??

in reply to many exe files rely on one library

If you absolutely must make it difficult for a user to modify your scripts, you can try to obfuscate it, like they do in Java. How to go about that I don't know, but there's bound to be a package for that somewhere.

Otherwise, to make things even more complicated(for yourself as well), you can write parts of it in C(and somehow use XS to pass your entire Perl script as a string to the interpreter. Then, use "make perl" to compile the Perl core and your script into a perl.exe. Note that even if you don't tell anyone, it's still quite trivial to get the script by useing your module containing the script and then just placing that script into a new file and editing from there.

I don't see what you're trying to do that would require this, though. Assuming you distribute your application so that clients can install it on their own machines, if they screw things up it's their problem and not yours, no?
If you truly have secrets you must hide from clients, perhaps Perl is not the right choice. An actual compiled language may be the better choice.

confess( "I offer no guarantees on my code." );

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998943]
[LanX]: I told you the story about the “new" currency trading system of Dresdner Bank
[LanX]: ?
[Corion]: No, or I don't remember the story ;)
LanX my favourite don't tell me the proof of concept is good enough for production anecdote
[ambrus]: ah, it's one of thos
[Eily]: what, there's a difference between proof of concept and production?
[LanX]: 20 years ago traders were complaining about the latency of the trading system...
[ambrus]: I'm currently in the process of rewriting my proof of concept programs. They sort of developped organically as I was experimenting, so now I've got an ugly mess of multiple programs and one-liners held together by nothing. I'll have to rewrite them to som
[ambrus]: ething that's both cleanly organized and mostly automated.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2017-03-29 11:45 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (350 votes). Check out past polls.