Actually, Perl knows when you've used double quotes around a fixed string and changes them to single quotes internally.
$ perl -MO=Deparse -le 'print "Fixed string"' BEGIN { $/ = "\n"; $\ = "\n"; } print 'Fixed string'; -e syntax OK $
In my opinion, a much better reason for using single quotes for fixed strings is that it tells the next programmer to look at your code that nothing interesting is going on in that string.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: In Love With Double Quotes
by davorg
in thread In Love With Double Quotes
by revence27
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |