"my" is a Perl command and so needs to be included in an -e string.
Read the manpage on Perl for details. Jon On Sun, Nov 2, 2008 at 11:16 AM, Stephen Liu <[EMAIL PROTECTED]> wrote: > Hi Jonathan, > > > Thanks for your advice. I'm now working on a desktop PC without cpan > installed. > > >> For "use", you can do this: >> >> perl -MModule -e 'my @files' >> >> Which is equivalent to a program: >> use Module; >> my @files; >> >> You can add other statements to your -e parameter as well; just >> separate them with semicolons. > > > To issue following commands; > > use ExtUtils::Installed; > > my $inst = ExtUtils::Installed->new(); > my @modules = $inst->modules(); > > > Whether run; > > perl -MExtUtils::Installed;my $inst = ExtUtils::Installed->new();my > @modules = $inst->modules(); > > > TIA > > > B.R. > Stephen L > > Send instant messages to your online friends http://uk.messenger.yahoo.com >