Re: Dependancies

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 10:34 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Okay, thanks, now I understand what you mean. > > Chas. Owens wrote: > > ... to detect what dependencies the code has > > Even if dependencies is the subject of this thread, it's not really what > the OP asked about. He simpl

Re: Dependancies

2008-02-18 Thread Gunnar Hjalmarsson
Okay, thanks, now I understand what you mean. Chas. Owens wrote: ... to detect what dependencies the code has Even if dependencies is the subject of this thread, it's not really what the OP asked about. He simply asked for an "easy way to get a list of all modules loaded by a Perl script".

Re: Dependancies

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 9:08 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Chas. Owens wrote: > > On Feb 18, 2008 7:52 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > > snip > >>> eval "use SomeModule" if $ENV{USE_SOMEMODULE}; > >>> > >>> or the sort of tricks that the DBI and other factory class

Re: Dependancies

2008-02-18 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On Feb 18, 2008 7:52 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: snip eval "use SomeModule" if $ENV{USE_SOMEMODULE}; or the sort of tricks that the DBI and other factory classes use. What would be the problem with that? $ perl -le 'eval "use Time::Local"; print for ke

Re: Dependancies

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 7:52 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: snip > > eval "use SomeModule" if $ENV{USE_SOMEMODULE}; > > > > or the sort of tricks that the DBI and other factory classes use. > > What would be the problem with that? > > $ perl -le 'eval "use Time::Local"; print for keys %I

Re: Dependancies

2008-02-18 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On Feb 18, 2008 6:57 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: Mark Wagner wrote: Is there any easy way to get a list of all modules loaded by a Perl script? $ perl -le' use Time::Local; print for keys %INC ' Of course, this assumes the author did not do anything like

Re: Dependancies

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 6:57 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > Mark Wagner wrote: > > Is there any easy way to get a list of all modules loaded by a Perl script? > > $ perl -le' use Time::Local; print for keys %INC ' > warnings/register.pm > Carp.pm > vars.pm > strict.pm > Exporter.pm > consta

Re: Dependancies

2008-02-18 Thread John W. Krahn
Mark Wagner wrote: Is there any easy way to get a list of all modules loaded by a Perl script? $ perl -le' use Time::Local; print for keys %INC ' warnings/register.pm Carp.pm vars.pm strict.pm Exporter.pm constant.pm Time/Local.pm warnings.pm Config.pm integer.pm John -- Perl isn't a toolbox

Dependancies

2008-02-18 Thread Mark Wagner
Is there any easy way to get a list of all modules loaded by a Perl script? -- Mark Wagner -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/