Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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
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 scrutinizing the Monastery: (7)
As of 2014-08-23 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (175 votes), past polls