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

Re: [FWP] Perl Card Games



On Tue, Aug 03, 1999 at 03:03:35PM -0700, Eli Evans wrote:
> 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\""
> 

Fortunately, Perl provides the alternate quoting constructs q// and qq//
for just these occasions.  (Also qx//, qw//, and the new qr//.)

perl -e "print qq{\n}"

Ronald

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