Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: The Perl Compiler (turning perl scripts into binary executables)

by John M. Dlugosz (Monsignor)
on Jul 10, 2001 at 22:46 UTC ( [id://95415]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: The Perl Compiler (turning perl scripts into binary executables)
in thread The Perl Compiler (turning perl scripts into binary executables)

How about:
do "config.pl";
  • Comment on Re: Re: Re: The Perl Compiler (turning perl scripts into binary executables)
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Re: The Perl Compiler (turning perl scripts into binary executables)
by Anonymous Monk on Jul 10, 2001 at 23:17 UTC
    Config.pl counts as source of course. If it doesn't contain 'e' you are in the clear! You must compile it too (beforehand ;-) . But if it is a config-file as the name suggests, therefore hopefully written by the program, the compiler could check the format and make a readroutine.
      I imagine you could put a switch on the compiler call that says "I'm not doing evals or dos or requires, so you can leave out the Perl source compiler."

      =cut
      --Brent Dax

      @HPAJ=split("", "rekcaH lreP rentonA tsuJ"); print reverse @HPAJ; #sucky but who cares?
        I don't see why we need to leave anything out at all. Compiled Perl programs would require the Perl DLL. But since Visual Basic has done that all along, big deal.

        Meanwhile, if you really really want a (small) single exe file solution, I can suppose that (a) you specify what you want to include or leave out, and get an error if you violate that; or (b) the compiler knows what you used or didn't, and leaves things out at link-time automatically. If nothing in the program called eval(), for example, eval() doesn't get pulled in by the linker. (If you do include eval, you might as well pull in everything, so don't worry about the lack of static analysis).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://95415]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-25 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found