Ron Smith wrote:
Hello all,
Hello,
How do you print elements of an array, each on its own line, in a Windows'
console?
I'm doing the following:
E:\My Documents>perl -e "use ExtUtils::Installed; my $inst =
ExtUtils::Installed->new(); my @modules = $inst->modules(); print @modules"
it returns:
Archive::TarArchive::ZipArray::CompareAutoLoaderCPANCPAN::ChecksumsCPAN::DistnameInfo
...etc.
I need:
Archive::Tar
Archive::Zip
Array::CompareAutoLoaderCPAN
CPAN::Checksums
CPAN::DistnameInfo ...etc.
I tried "\n", '\n' and a 'foreach' loop, but nothing I do seems to work. ..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()"
John
--
Those people who think they know everything are a great
annoyance to those of us who do. -- Isaac Asimov
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/