You can't just "compile two scripts into one".  Their mains will conflict.
What u can do is import subroutines from one to the other.  The real way to
do that is with a module, which is a user-made function library.  Put all ur
functions/subs into a file like MyLib.pm and then import that into a script
with use MyLib.  This way u don't have to worry about which script has what
function and having them get out of sync.  Look at some of the pm's on ur
system to get the format.  If u want to just import some text file with perl
code in it as a one off action u could probably do it with an eval.  Read in
the outside file to a variable, then eval { sub otherscript { $foreign_code
} }.  But the imported code will not be compiled into the exe.  If ur really
bent on getting the foreign code into the exe u can make another script
which reads in both scripts, combines them, and then writes out a hybrid
script and compiles it.  But that will be a pain and ur kinda asking for
trouble.  Making a common module is ur best bet.










--
REMEMBER THE WORLD TRADE CENTER         ---=< WTC 911 >=--
"...ne cede males"

00000100

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to