Sharan Basappa wrote:
OTOH, I don't see the point in struggling with Text::Balanced, when all you
need is:
my @extracted = $source =~ /covergroup.+?endgroup/gs;
The example I gave is simple but will become more complex as I keep adding
functionality to it. More complex input is yet to come.
Okay, I didn't know. That may justify the use of a not-so-easy-to-use
module such as Text::Balanced.
Also, I believe people would
frown if they see applications of complex hand written regexes when
built in modules can do that work.
At least some would. :)
I tend to try regular expressions at first hand, probably because I feel
rather comfortable with the regex syntax. In any case, useful modules
are always living options to me.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/