On Sun, Mar 15, 2009 at 2:39 AM, Chas. Owens <chas.ow...@gmail.com> wrote:
snip
> This is shell dependent, and unfortunately the standard Windows shell
> (cmd.exe) does not follow the sh syntax.  Single quotes are not
> allowed as quotes and double quotes do not interpolate values.  Also $
> is not how variables are named.  If you want to use double quotes in a
> commandline program on Windows you must use the generic interpolating
> quote construct: qq//.
>
> perl -MExtUtils::Installed -e "print join qq/\n/,
> ExtUtils::Installed->new->modules"
snip

Although qq/\n/ is easier to write, you may also escape the double quotes:

\"\n\"

works.

Beau;

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to