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
the error "Text::Balanced doesn't contain an __DATA__ token at .... line 7" is returned. when I change the line#!/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,'{}');
tomy @line = Text::Balanced::extract_braketed($text,'{}');
I get Undefined subroutine &main::extract_braketed called at ... line 7. Any suggestions are welcome?my @line = extract_braketed($text,'{}');
In Section
Seekers of Perl Wisdom