Ron Smith
2009-03-15 06:49:54 UTC
Subject: Re: I'm sure this is a common question, but I can't find the solution.
Date: Saturday, March 14, 2009, 10:51 PM
Ron,
On Sat, Mar 14, 2009 at 7:28 PM, Ron Smith
Archive::TarArchive::ZipArray::CompareAutoLoaderCPANCPAN::ChecksumsCPAN::DistnameInfo
...etc.
..any suggestions?
Use the "join' command to join the elements of the
perl -e "use ExtUtils::Installed; my $inst =
$inst->modules(); print join
"\n\""
Yes, I tried 'join' also but ran into the following message on using more than 1 set of double quotes:Date: Saturday, March 14, 2009, 10:51 PM
Ron,
On Sat, Mar 14, 2009 at 7:28 PM, Ron Smith
Hello all,
How do you print elements of an array, each on its own
line, in a Windows' console?How do you print elements of an array, each on its own
E:\My Documents>perl -e "use
ExtUtils::Installed; my $inst =Archive::TarArchive::ZipArray::CompareAutoLoaderCPANCPAN::ChecksumsCPAN::DistnameInfo
...etc.
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.Archive::Zip
Array::CompareAutoLoaderCPAN
CPAN::Checksums
CPAN::DistnameInfo ...etc.
I tried "\n", '\n' and a
..any suggestions?
Use the "join' command to join the elements of the
perl -e "use ExtUtils::Installed; my $inst =
$inst->modules(); print join
"\n\""
String found where operator expected at -e line 1, at end of line
(Missing semicolon on previous line?)
Can't find string terminator '"' anywhere before EOF at -e line 1.
And, when I tried single quotes, I got:
Backslash found where operator expected at -e line 1, near "'\n\',@modules, '\"
(Missing operator before \?)
Backslash found where operator expected at -e line 1, near "n\"
syntax error at -e line 1, near "'\n\',@modules, '\"
Can't find string terminator "'" anywhere before EOF at -e line 1.
Ron Smith
***@yahoo.com
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/