develooper Front page | perl.vmsperl | Postings from January 2002

Re: Putting the perl source in with the embedding executable?

Thread Previous
From:
Dan Sugalski
Date:
January 30, 2002 15:21
Subject:
Re: Putting the perl source in with the embedding executable?
Message ID:
a05101405b87e31556258@[63.120.19.220]
At 5:14 PM -0600 1/30/02, Forrest Cahoon wrote:
>Is it possible to get my perl source into the same executable file as my
>wrapper?  Some linker trick, maybe?
>Or putting all the perl source into a buffer in my wrapper code? (Uck ...
>need to write a perl tool to do that ... oh, not uck)

Sure, embed it in the args passed to perl. Make one "-e" and the next 
the full text of your program.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About