[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [FWP] Perl Card Games



Ronald J. Kimball said:
: Eli's shell, on the other hand, being on a Windows system, does weird
: things when single quotes are used around an argument (in fact, I think it
: ignores them), which is why he used double quotes on the outside and
single
: quotes within.

Yep, it ignores them. The MS-DOS shell that ships with Win95 only allows
command line arguments with internal spaces to be wrapped by double quotes,
AFAIK. If I try to use single quotes, it thinks I've fed it many small
arguments (and then usually barfs). If I want double quotes in the eval
string, I have to escape them. Very annoying for doing things like

	perl -e "print \"\n\""

Oddly enough I thought that, 

	perl -e print"\n"

would work (no spaces in the argument), but it acts the same as

	print \"n";

does in a script file. That is, it prints a SCALAR reference. (?!)

: Something to keep in mind when using -e on Unix and Windows.

Definately.

Regards,
________________________
Eli Evans
Text Preparation Manager
Libronix Corp.
mailto:eli@libronix.com
http://www.libronix.com
Ec 12:12; Jn 21:22



==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe