Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: $1 not "freezing" in an addition

by bart (Canon)
on Dec 14, 2012 at 12:29 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2016-10-26 03:01 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.