Aperghis-Tramoni Sebastian <madingue@cis.uni-muenchen.de> writes: >On Sat, 26 Jul 1997, pudge@pobox.com (Chris Nandor) wrote: >> Can anyone confirm whether or not this is correct behavior? Hard to say about correct, but it's known behavior. >> print q{\{this # and that\}} >> >> I would expect this to print: >> >> {this # and that} >> >> But it prints: >> >> \{this # and that} >But I think that this behavior is normal. As you define "{" as opening bracet, >Perl expect you to use "}" as closinbg bracet, and as q// does not >interpolate, the only allowed interpolations are "\\" and "\}". Agreed According to Tom Christiansen, this is also described in the Friedl Regexp book.. > print q{ { } -> Can't find string terminator "}" anywhere before EOF > print q{ { } } -> { } > print q{ \{ } } -> Unmatched right bracket > print q{ { \} } -> Can't find string terminator "}" anywhere before EOF > print q{ \{ \} } -> \{ } This behaviour, however, is rather unpleasant and could possibly be considered a bug. Matthias ----- Matthias Neeracher neeri@iis.ethz.ch "These days, though, you have to be pretty technical before you can even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_ ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch