[Melbourne-pm] Single vs double quotes: no real difference (was Re: Delivering PDFs via CGI)
scottp at dd.com.au
Tue Jun 20 13:31:39 PDT 2006
I like it - you definitely described my erratic behaviour too :-)
On 20/06/2006, at 17:14, Sisyphus wrote:
> ----- Original Message -----
> From: "Jacinta Richardson"
>> If you mix up your quotes with no clear reason (that is sometimes
>> you use
>> and other times double for literal data) then the person reading
>> your code
>> just go nuts.
> I reckon that I mix them up "with no clear reason" ... and I also
> that most others do, too .... but I'm not sure that my reckoning is
> I often do:
> $x = 'Hello World';
> @stats = stat 'some.file';
> but then I *always*:
> print "Hello World";
> Does *anyone* ever:
> print 'Hello World';
> Is there a "clear reason" for using single quotes in the assignment
> and the
> stat(), but double quotes in the print() ?
> Anyway ... my basic thinking is that you should use single quotes
> double quotes are needed .... or unless there's some convention that
> dictates the use of double quotes .... or unless you inadvertently use
> double quotes in a moment of distraction :-)
> Melbourne-pm mailing list
> Melbourne-pm at pm.org
* - * http://www.osdc.com.au - Open Source Developers Conference * - *
Anthropomorphic Personification Expert
scott at cpan.org
Dismaimer: While every attempt has been made to make sure that this
email only contains zeros and ones, there has been no effort made to
guarantee the quantity or the order.
Please do not send me Word or PowerPoint attachments.
Microsoft is not the answer. It's the question. And the answer is no.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://mail.pm.org/pipermail/melbourne-pm/attachments/20060621/9c5b40f6/attachment.bin
More information about the Melbourne-pm