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 reply to Re^3: Regular Expression problem when Extracting Start\ VALUE \End
by Anonymous Monk
in thread Regular Expression problem when Extracting Start\ VALUE \End
by gasho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |