> "Konovalov, Vadim" <vkonovalov@lucent.com> wrote > > While ramblering in Perl's regexp source I've noticed that (?{...}) > > construction is parsed in regcomp.c in too simplified way. > > > perl -e '/(?{print "Hello{"})/' > > explains: > > Sequence (?{...}) not terminated or not {}-balanced at -e line 1, within > pattern > > /(?{print "Hello{"})/: Sequence (?{...}) not terminated or not > {}-balanced at -e line 1. > > But you can circumvent it with an escape: > > perl -e '/(?{print "Hello\{"})/' > Hello{ > Yes, I did not noticed that before. Thank you :) Good luck, Vadim.Thread Previous | Thread Next