I take it you mean besides cutting and pasting the text?  I'm not sure
exactly what you're asking.  If your subroutine is not part of a "compiled"
script, why not just copy the subroutine's code into your script?

As for an easy way to compile a perl script, there are two well-known
products for doing this:  perl2exe http://www.perl2exe.com, and
ActiveState's perlapp, which is part of the Perl Dev Kit (I'm not sure if
you can buy it separately) http://www.activestate.com.  Both of them
basically just incorporate the perl interpreter and all required modules
into an executable, so they can be fairly large (1+MB) compared to the
original scripts.  I've been using perlapp for a while now and have no
complaints.

If you cust want to call one perl script from another, though, you can just
use the system() command or backticks.  Again, I'm not 100% sure what you're
asking, but I hope that helps.

-----Original Message-----
From: bob ackerman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 5:03 PM
To: [EMAIL PROTECTED]
Subject: sharing subroutines


is there a way to share uncompiled perl scripts? that is, to include the 
subroutines of one script file into another script file.
failing that, can i easily compile a perl script and use it in a script?
why am i having trouble figuring this out?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------------------
This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to