Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Delimited Backtracking with Regex

by neversaint (Deacon)
on Apr 21, 2006 at 02:24 UTC ( [id://544759]=note: print w/replies, xml ) Need Help??


in reply to Re: Delimited Backtracking with Regex
in thread Delimited Backtracking with Regex

Dear ikegami,
To confirm my understanding on the use of "local our".
You mean in this context right?
foreach my $ss (@str_set) { local our @matches; $ss =~ m/ (XXX.*YYY) # Search and capture (?{ push @matches, $1 }) # Save result (?!) # Try again /x; print Dumper \@matches ; }
Namely if I use "my" instead it will return:
$VAR = [ # with something ] # and then empty.... $VAR = []; $VAR = []; etc...


---
neversaint and everlastingly indebted.......

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-19 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found