Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Modifying pos() from within (?{...})

by mxb (Pilgrim)
on Apr 26, 2018 at 13:07 UTC ( [id://1213602]=note: print w/replies, xml ) Need Help??


in reply to Re: Modifying pos() from within (?{...})
in thread Modifying pos() from within (?{...})

Oh! of course! I was returning "(.){$len}", which is $len number of single character capture groups. What I actually wanted was "(.{$len})" - a single capture of length $len.

I also see you added the missing /s modifier, which explains why it was stopping mid way through.

That makes the (??{...}) issue much clearer. Thanks!

Log In?
Username:
Password:

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

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

    No recent polls found