in reply to doubt on assertion regex

You have print "$open $count $close"; and you state that you want the number to preceed the parenthesis.

So use print "$count $open$close";

Replies are listed 'Best First'.
Re^2: doubt on assertion regex
by loki (Novice) on Jan 21, 2010 at 06:29 UTC
    no its wrong... it will print as
    while 1( 2(condition A)&& 3(condition B) )
    which is not desired....
      My code prints a space between the numeral and the opening parenthesis. Show what code you're actually using, because it's not the same.