in reply to text extraction of ( , )

I think you might be looking for Text::Balanced.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg