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 |
In Section
Seekers of Perl Wisdom