in reply to Quote and Quote-like Operators
No. One should choose the delimiters based on what they are wanting to avoid having to escape. If we used them only with {} then we would have to escape {} every time. Best to pick something else:
my $string = q/{(foo => "'bar'")}/;
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)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Quote and Quote-like Operators
by grinder (Bishop) on Jan 16, 2009 at 08:35 UTC | |
Re^2: Quote and Quote-like Operators
by setebos (Beadle) on Jan 15, 2009 at 21:37 UTC | |
by Jenda (Abbot) on Jan 15, 2009 at 21:49 UTC | |
by jeffa (Bishop) on Jan 15, 2009 at 21:48 UTC |
In Section
Seekers of Perl Wisdom