Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Delimited Backtracking with Regex

by neversaint (Deacon)
on Apr 21, 2006 at 02:24 UTC ( #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
Node Status?
node history
Node Type: note [id://544759]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2020-12-05 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?