http://qs1969.pair.com?node_id=1116556


in reply to Re^2: Regular Expression problem when Extracting Start\ VALUE \End
in thread Regular Expression problem when Extracting Start\ VALUE \End

I have Balanced.pm in the path but when I run the simple code

#!/usr/bin/perl use strict; use warnings; use Text::Balanced qw(extract_bracketed); my $text = "{{define:STOP,law:101A}{here:stop}}"; my @line = Text::Balanced::extract_braketed($text,'{}');
the error "Text::Balanced doesn't contain an __DATA__ token at .... line 7" is returned. when I change the line
my @line = Text::Balanced::extract_braketed($text,'{}');
to
my @line = extract_braketed($text,'{}');
I get Undefined subroutine &main::extract_braketed called at ... line 7. Any suggestions are welcome?