Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Protecting Perl source code?

Status
Not open for further replies.

c4n

Programmer
Mar 12, 2002
110
SI
Is there a way (program) to protect the source code of Perl scripts? I'm thinking about selling few scripts and would like to hide the source.
 
Perl is not a compiled language so there isn't a way to "hide" the script. If you're going to be selling your scripts you can provide a link to show what it does or looks like. At that point, the script is not readable as a script, like HTML. It's just a result of the script. There's always a better way...
 
There is always perlcc, which compiles perl scripts into executables.

However, the man page for perlcc contains the following warning:
The code generated in this way is not guaranteed to work. The whole codegen suite ("perlcc" included) should be considered very experimental. Use for production purposes is strongly discouraged. ______________________________________________________________________
TANSTAAFL!
 
Or, perlApp which compiles the script into an executable from activestate.com
'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
This is not a criticism; I just want to share a viewpoint. Perl is an open source platform, including all of the Perl modules, which means that many people have contributed a lot of time and effort so that we can have a great set of effecetive tools. They did this knowing that the source wouold be open.

So, if I use these open tools to develop a script, and then I hide my source code from others, it's hypocritical. I'm taking, but I'm not willing to give to others what I take.

There's nothing wrong with selling a script, of course. But if it weren't for the open source spirit that has always been behind Perl and other projects, I wouldn't be able to write the script in the first place.

It's like trying to hide html. If the Web weren't open source, there wouldn't BE any World Wide Web.

I'm not judging anybody, just sharing my opinion.

Good luck,

Greg _______________________________________
Constructed from 100% recycled electrons
 
MissouriTiger,

You need to deepen your understanding of the ethics of open source software. Opening the source code of your application is a choice, not a requirement, even if you use open source tools to create it. Licensing like the GPL exists to do one thing: to protect the intellectual effort that I put into producing a product while at the same time allowing me to release that product's source code. It prevents others from unfairly gaining from my work.

The source status of an software tool places no constraints of any kind on the source status of products I create using that tool. Otherwise, no product ever compiled with gcc could ever be closed-source commercial software.

There is no hypocracy involved. ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top