That title was just to get you to read past the title. The truth is that, in fact, I am going to bark a very short rant against double quotes, while I wait for the Monastery GongsTM to call us for lunch. I need a decent plate of
$thesaurus->{rice}->[3]
.
How often do you ever stop in the middle of a hack, and ask thine self whether || ! you should use double || single quotes?
This is something you won't find in any Write-Better-Perl-Today texts. Because it's a waste of resources to talk about something that has almost no importance.
But since I'm in the comfort of The Monastery, I'll rant.

'This hot Perlistic string'
is better, IMHO, than
"This hot Perlistic string"
.
Because, as you can see, there are no $vars in the string, so putting it in double quotes would burden perl for nothing.
Also, I think 'First half ' . $second_half is better than "First half $second_half", for the same reason.
I think if you have lots of stringin' around to do, this would be a neater thing to do.
Punch me in the face.

In reply to In Love With Double Quotes by revence27

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.