tlemons has asked for the wisdom of the Perl Monks concerning the following question:
I have a Perl application that consists of a Perl program (foo.pl) and a Perl module (bar.pm). There are some secrets in bar.pm that I don't want to share with the application's user. So, I'm planning to use Perl2Exe on bar.pm to create bar.exe. (I can't use Perl2Exe on foo.pl, because foo.pl uses IPC::Run, which Perl2Exe does not currently support)
I need to call the 12 functions in bar.exe from foo.pl. Currenly, in my foo.pl<>bar.pm world, foo.pl does a 'use bar', and executes the subroutines in bar.pm. The subroutine calls pass multiple parameters into bar.pm's subroutines, and receive multiple return values in return. This all works fine.
But, when I turn bar.pm into bar.exe, how then can I call bar's subroutines (passing multiple input values and receiving multiple return values)?
Thanks!
tl
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using Perl subroutines in a Perl2Exe exe file
by Xaositect (Friar) on Jun 29, 2005 at 19:32 UTC | |
by tlemons (Novice) on Jun 29, 2005 at 20:15 UTC | |
by waswas-fng (Curate) on Jun 29, 2005 at 20:27 UTC | |
by Xaositect (Friar) on Jun 30, 2005 at 18:00 UTC | |
Re: Using Perl subroutines in a Perl2Exe exe file
by hydo (Monk) on Jun 30, 2005 at 05:41 UTC | |
by hydo (Monk) on Jun 30, 2005 at 05:49 UTC | |
by Anonymous Monk on Jun 30, 2005 at 19:21 UTC | |
by hydo (Monk) on Jul 02, 2005 at 07:26 UTC |