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
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".
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
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
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
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
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
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
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/