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


in reply to Re: Quote and Quote-like Operators
in thread Quote and Quote-like Operators

I see no difference between:
my $string = q/{(foo => "'bar'")}/;
and
my $string = q{{(foo => "'bar'")}};

Replies are listed 'Best First'.
Re^3: Quote and Quote-like Operators
by Jenda (Abbot) on Jan 15, 2009 at 21:49 UTC

    That's only true when the curlies are properly nested within the string. Again, it depends. Sometimes the test of the proper nesting is a plus, sometimes it's a bother.

Re^3: Quote and Quote-like Operators
by jeffa (Bishop) on Jan 15, 2009 at 21:48 UTC

    My syntax highlighter does. Perhaps i did not pick the best example. My point is still valid.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)