Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Regular Expression problem when Extracting Start\ VALUE \End

by Anonymous Monk
on Feb 12, 2015 at 23:20 UTC ( [id://1116556]=note: print w/replies, xml ) Need Help??


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?

Replies are listed 'Best First'.
Re^4: Regular Expression problem when Extracting Start\ VALUE \End
by Anonymous Monk on Feb 13, 2015 at 07:43 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1116556]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-28 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found