Andrew Bastien wrote:
> Whether or not single quotes work depends on the command, as
> it's the command that has to parse the argument list.
However, at least on NT (cmd.exe) double quotes appear to be interpreted
either by the shell or (possibly) by Perl -- at least, if I pass "foo bar"
as a command line argument to a Perl script, it counts as one argument,
q[foo bar], while 'foo bar' is two arguments, q['foo] and q[bar'].
Moreover, perl -e "insert script here" runs the script, while perl -e
'script' does one of two things -- if script contains spaces, you get the
error message "Can't find string terminator "'" anywhere before EOF at -e
line 1.", and if it doesn't, nothing happens (presumably, the script is
interpreted literally as 'script', and executing that just results in a true
value -- like a script line consisting only of
'script';
). So, basically, double quotes work to enclose an -e string, while single
quotes don't.
Cheers,
Philip
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]