Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: $1 not "freezing" in an addition

by bart (Canon)
on Dec 14, 2012 at 12:29 UTC ( [id://1008826]=note: print w/replies, xml ) Need Help??


in reply to $1 not "freezing" in an addition

Does it work better if you "unreverse" the if condition?
if(s/\(#:(\d+)\)/#/) { return $1 + distance($_); }

As I don't have the whole code, it's a bit difficult to test. And it's just a hunch.

Replies are listed 'Best First'.
Re^2: $1 not "freezing" in an addition
by grondilu (Friar) on Dec 14, 2012 at 12:42 UTC

    Nope. (It was actually initially written as such, anyway)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1008826]
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: (5)
As of 2024-04-19 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found