Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
thanks$input = 5.56 open (FH, "<listofvalues"); while (<FH>) { ^/(S+\.S+).*/ if $1 == $in {print value in list} else increment $in by +/- 0.1 and search again if match print value in list otherwise print not in list
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: matching a number
by tlm (Prior) on May 31, 2005 at 16:12 UTC | |
|
Re: matching a number
by BigRare (Pilgrim) on May 31, 2005 at 16:18 UTC | |
|
Re: matching a number
by trammell (Priest) on May 31, 2005 at 16:35 UTC | |
|
Re: matching a number
by chas (Priest) on May 31, 2005 at 16:38 UTC | |
by davidrw (Prior) on May 31, 2005 at 16:46 UTC |