Hi:

I would suggest:

perl -MExtUtils::Installed -e 'my $inst = ExtUtils::Installed->new();
my @modules = $inst->modules()'

*please* read the documents, especially the manpage for "perl" and the
perldocs. They are there to help you, and this mailing list isn't here
as a substitute for people whom are too lazy to read the available
documentation.

Cheers,

Jonathan

On Sun, Nov 2, 2008 at 10:13 PM, Stephen Liu <[EMAIL PROTECTED]> wrote:
> --- Jonathan Yu <[EMAIL PROTECTED]> wrote:
>
>> "my" is a Perl command and so needs to be included in an -e string.
>>
>> Read the manpage on Perl for details.
>>
>> Jon
>
>
> If I need to run following commands;
>
> use ExtUtils::Installed;
> my $inst    = ExtUtils::Installed->new();
> my @modules = $inst->modules();
>
> (
> http://perldoc.perl.org/perlfaq3.html#How-do-I-find-which-modules-are-installed-on-my-system%3f
> )
>
> I should run;
> perl -ExtUtils::Installed -e 'my $inst = ExtUtils::Installed->new()';
> -e 'my @modules = $inst->modules()';
> ???
>
>
> Thanks
>
>
> B.R.
> Stephen
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>

Reply via email to