Re: I'm sure this is a common question, but I can't find the solution.
- From: geeksatlarge@xxxxxxxxx (Ron Smith)
- Date: Sat, 14 Mar 2009 23:33:19 -0700 (PDT)
Ron Smith wrote:Thanks, John. It does work. And, I've found that my original command also works when I added the -l and 'for' like:
Hello all,
Hello,
How do you print elements of an array, each on its ownline, in a Windows' console?
ExtUtils::Installed; my $inst =
I'm doing the following:
E:\My Documents>perl -e "use
ExtUtils::Installed->new(); my @modules =
$inst->modules(); print @modules"
Archive::TarArchive::ZipArray::CompareAutoLoaderCPANCPAN::ChecksumsCPAN::DistnameInfo
it returns:
...etc.
'foreach' loop, but nothing I do seems to work.
I need:
Archive::Tar
Archive::Zip
Array::CompareAutoLoaderCPAN
CPAN::Checksums
CPAN::DistnameInfo ...etc.
I tried "\n", '\n' and a
..any suggestions?
I don't have Windows to test this on but this should
work:
perl -MExtUtils::Installed -le"my $inst =
ExtUtils::Installed->new(); print for
$inst->modules()"
perl -le "use ExtUtils::Installed; my $inst = ExtUtils::Installed->new(); my @modules = $inst->modules(); print for @modules"
I don't know if mine is correct form though. 'perl -h' reveals that -l enables line ending processing, specifies line terminator. Is that the idea?
Ron Smith
geeksatlarge@xxxxxxxxx
.
- References:
- Re: I'm sure this is a common question, but I can't find the solution.
- From: John W. Krahn
- Re: I'm sure this is a common question, but I can't find the solution.
- Prev by Date: RE: I'm sure this is a common question, but I can't find the solution.
- Next by Date: Re: I'm sure this is a common question, but I can't find the solution.
- Previous by thread: Re: I'm sure this is a common question, but I can't find the solution.
- Next by thread: RE: I'm sure this is a common question, but I can't find the solution.
- Index(es):
Relevant Pages
|