http://www.perlmonks.org?node_id=481927


in reply to In Love With Double Quotes

I'm surprised that no one has mentioned my favorite reason for using single quotes instead of double quotes (in this discussion or the last): more whitespace. Whitespace is pretty, and ' takes half as many pixels as ". Witness:
my $foo = "fhwgads"; if ( $foo eq "fhwgads" ) { print "fh" . "wg" . "ads"; }
my $foo = 'fhwgads'; if ( $foo eq 'fhwgads' ) { print 'fh' . 'wg' . 'ads'; }
Doesn't the second example look *so* much better? Ahh, the beauty. Maybe I like whitespace a little too much?

--Dan