You need to specify a prefix.
Change
extract_bracketed($text,'()')to
extract_bracketed($text,'()', '%%% rick ran errands . sem')and you'll get your expected output.
This is explained in the Text::Balanced documentation.
-- Ken
In reply to Re: Text::Balanced not extracting
by kcott
in thread Text::Balanced not extracting
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |