Thanks you guys for your replies.
The purpose of knowing a program dependencies is to help troubleshoot any problems 
that may occur once you install your script on a different machine or a a different OS 
such as from NT to UNIX and vice versa where different version of Perl may be 
installed.
It's good to know just for the heck of it.. to know all the details about your script.
using print @INC doesn't help it just points you to the lib dir in your path. But I 
know  when you use perl2exe it prints on the screen all your script dependencies. So I 
hoped that perl.exe had a command line argument that would extract those files.

Regards

F.H
 
Stas Bekman <[EMAIL PROTECTED]> wrote:
>
> On Fri, 20 Apr 2001, Andrew Ho wrote:
> 
> > Hello,
> >
> > FH>Does anyone know of a perl command/or a simple way that would extract
> > FH>all .pm and .pl that a perl script needs in order to run?
> >
> > SL>I think the question being asked is , how to resolve ALL dependencies ,
> > SL>not just the first level given in the app. For example , I may use some
> > SL>libs that in turn use others , and so on in multiple levels of nesting.
> 
> As others have mentioned already, it's virtually impossible to know about
> all modules that are being used, since some of those are written on the
> flight (and not required/used at all).
> 
> It'd help if you tell us why do you want to do that. If I understand you
> correctly, you want to make sure that the production machine is in sync
> with the development machine. Use CPAN.pm's bundle() function to make a
> snapshot of all modules that you have on your dev machine and then use the
> bundle to replicate it on any other machine of your choice.  See the CPAN
> man page for more information.
> 
> _____________________________________________________________________
> Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
> http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
> mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
> http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
> 
> 
> 
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/

Reply via email to