Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2015-07-29 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (268 votes), past polls