in reply to text extraction of ( , )
I think you might be looking for Text::Balanced.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg