in reply to Regexp for Match Brackets
hi Gopal, try this one
print $& if $text=~m#(\(.*\))#;
the problem of your solution is that it takes all the text (parenthesis included) between the first open parenthesis and the last closed parenthesis, even if they are not balanced! :-P
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (449 votes). Check out past polls.