i've not been able to find any answers to this question here or elsewhere on the web, so....
i've recently installed Text:Balanced (ver 1.89, from CPAN) on two different linux machines, and following the instructions to my utmost, created a rather simplistic test script.
Though 'make test' reported no errors, my script wwon't work. That leads me to believe that the problem is mine... hence this post.
Can (will?) someone please take a look at this script (pasted below) and tell me why it does not do what i expect? (i expected it to find the text wrapped in the bold tags..)
thanks ever so much!
#!/usr/bin/perl -w use Text::Balanced qw(extract_tagged); use strict; my $text = "this is a test <B>for</b> tags! \n"; my ($extracted, $remainder); ($extracted, $remainder) = extract_tagged($text); print "extracted: "; print $extracted; print "\n"; print "remainder: "; print $remainder; print "\n"; exit 0;
In reply to Text::Balanced woes.. by u914
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |