in reply to newline behavior in Regular Expression
I may be out of line with this but why are you using eval when it seems to me that you could have done this without it?
Something along the lines of:
if($X ~= s{^(.*?)Resolved (\d+) problems out of (\d+) picked(.*?) +$}) { return ($3-$2/$3>.5) ? 1 :0); }
Of course, I could be completely off the mark.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: newline behavior in Regular Expression
by qq (Hermit) on Apr 12, 2004 at 21:15 UTC |