[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Howto import modules into runtimes?



Axel wrote:

> What do I do with dependencies? E.g. the module "File:Copy" is using
> "Carp", etc.
> I would need to find out all needed modules in order to incorporate them
> as TEXT resources ...
> 
> 
> Any helpful ideas?

Try the little-known, but sometimes useful %INC.  

Example:

	use Shell;
	use Socket; 
	use File::Copy;
	print join("\n",keys(%INC))."\n";

prints (under unix):

Carp.pm
Config.pm
/usr/local/lib/perl5/auto/Socket/autosplit.ix
Shell.pm
Socket.pm
Exporter.pm
File/Copy.pm
vars.pm
AutoLoader.pm
DynaLoader.pm


Bill


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch