Ask a Question related to PERL Beginners, Design and Development.

  1. #1

    Default binary perl

    Is it possible to make a perl script/program a binary file? I have a few
    scripts some one wants but I don't want them to have the source. I
    tried perlcc but I want it to remain perl not c, if that's possible or
    realistic.

    thanks,

    Dan.

    Dan Brow Guest

  2. Similar Questions and Discussions

    1. filestream binary
      I am attempting to create a webservice that pushes back a binary file by request type.. Suggestions?
    2. Off Topic: Active Perl Native Windows / cygwin perl
      I have both activestate windows native perl installed and the default cygwin perl. How can I have the cygwin shell use the windows perl rather...
    3. CGI php Binary
      Hi; I appologize in advance to purists who think the question is an appache one, or a mysql question. I have a virtual domain hosted by...
    4. Optimising performance of Perl binary
      Hi, currently we are hosting a Perl 5.6.1 based Intranet application on a Sun 6x750MHz v880/Solaris 8 (64bit) server. The application performs a...
    5. 64 bit binary and 32 bit binary have different result. Is it library bug or compiler bug?
      #include <errno.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <dirent.h> #include <assert.h> int main(int argc, char...
  3. #2

    Default Re: binary perl

    Dan Brow wrote:
    > Is it possible to make a perl script/program a binary file? I have a few
    > scripts some one wants but I don't want them to have the source. I
    > tried perlcc but I want it to remain perl not c, if that's possible or
    > realistic.
    >
    > thanks,
    >
    > Dan.
    >
    >
    perldoc -q 'hide the source'

    [url]http://danconia.org[/url]
    Wiggins D'Anconia Guest

  4. #3

    Default Re: binary perl

    Dan Brow wrote:
    > Is it possible to make a perl script/program a binary file?
    For bundling, yes. For hiding source, not really.
    > I have a
    > few scripts some one wants but I don't want them to have the source.
    > I tried perlcc but I want it to remain perl not c, if that's possible
    > or realistic.
    Use Acme::Bleach

    [url]http://search.cpan.org/~dconway/Acme-Bleach-1.12/lib/Acme/Bleach.pm[/url]
    Bob Showalter Guest

  5. #4

    Default Re: binary perl

    On Fri, 2004-01-23 at 20:44, Dan Brow wrote:
    > Is it possible to make a perl script/program a binary file?
    There is an experimental perl compiler. It's not recommended for
    production use but is a cool toy. When Perl 6 comes out that will all
    change though...

    -Dan

    Dan Anderson Guest

  6. #5

    Default RE: binary perl

    Short answer: No. There are programs like PerlApp that will package the interpreter with your code and make it into an executable file, but anyone who is determined enough can still get your source from the computer's memory. Your best bet is the old "security by obscurity" approach of either making your source look like gibberish or "invisible" via one of the ACME or shroud modules. If you look through the ActiveState PDK mailing list archives there are volumes on the subject.


    -----Original Message-----
    From: Dan Brow [mailto:fms@istop.com]
    Sent: Fri 1/23/2004 5:44 PM
    To: [email]beginners@perl.org[/email]
    Cc:
    Subject: binary perl



    Is it possible to make a perl script/program a binary file? I have a few
    scripts some one wants but I don't want them to have the source.



    Tim Johnson Guest

  7. #6

    Default Re: binary perl

    What's the perl compiler called?

    On Sat, 2004-01-24 at 18:13, Dan Anderson wrote:
    > On Fri, 2004-01-23 at 20:44, Dan Brow wrote:
    > > Is it possible to make a perl script/program a binary file?
    >
    > There is an experimental perl compiler. It's not recommended for
    > production use but is a cool toy. When Perl 6 comes out that will all
    > change though...
    >
    > -Dan
    >
    Dan Brow Guest

  8. #7

    Default RE: binary perl



    perldoc perlcc

    -----Original Message-----
    From: Dan Brow [mailto:fms@istop.com]
    Sent: Friday, January 30, 2004 11:03 AM
    To: Perl Beginners
    Subject: Re: binary perl

    What's the perl compiler called?

    On Sat, 2004-01-24 at 18:13, Dan Anderson wrote:
    > On Fri, 2004-01-23 at 20:44, Dan Brow wrote:
    > > Is it possible to make a perl script/program a binary file?
    >
    > There is an experimental perl compiler. It's not recommended for
    > production use but is a cool toy. When Perl 6 comes out that will all
    > change though...
    >
    > -Dan
    >

    --
    To unsubscribe, e-mail: [email]beginners-unsubscribe@perl.org[/email] For additional
    commands, e-mail: [email]beginners-help@perl.org[/email] <http://learn.perl.org/>
    <http://learn.perl.org/first-response>


    Tim Johnson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139