in reply to Re^2: Optional quotes: to use or not to
in thread Optional quotes: to use or not to

IIRC, curlies are necessary for anonymous hash constructions.

Single quotes are quite useful, reducing backwhacks, such as:

print 'The value of $scalar is ', $scalar, ', and this line ends with +\n', "\n";

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^5: Optional quotes: to use or not to
by Tux (Canon) on Jul 10, 2015 at 14:43 UTC

    I still much prefer:

    print "The value of \$scalar is $scalar, and this line ends with \\n\n +"; say "The value of \$scalar is $scalar, and this line ends with \\n";

    Enjoy, Have FUN! H.Merijn