Re: Embedding perl ?
Re: Embedding perl ?
- Subject: Re: Embedding perl ?
- From: Chris Ridd <email@hidden>
- Date: Fri, 14 Mar 2003 19:55:18 +0000
On 14/3/03 7:08 pm, Karl Kraft <email@hidden> wrote:
>
You could just make it one long NSString and pass it to the perl
>
interpreter via NSTask and a NSPipe.
>
>
However strings(1) would still allow the smarter end users to find it.
>
So you may want to obscure it. If you do a decent job of obscuring
>
it, then you could leave it as a resource, unobscure it in code, and
>
then pass it to the perl interpreter.
>
>
If it is short you could just convert it to C
>
>
>
On Friday, March 14, 2003, at 09:19 AM, Rhon Fitzwater wrote:
>
>
> any one can look at the package contents and see the code of the perl
>
> script. I would like to be able to embed the perl script into my *.m
>
> file. Is this possible?
If it is only important that the script not be modified, but viewing it is
OK, then consider storing a hash of the file in your program and when you
come to executing it, check if the file hashes to the same value.
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.