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

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.

Comment on Re: $1 not "freezing" in an addition
Select or Download Code
Replies are listed 'Best First'.
Re^2: $1 not "freezing" in an addition
by grondilu (Pilgrim) 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 lurking in the Monastery: (2)
As of 2015-11-27 00:05 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (710 votes), past polls