in reply to Re^8: Easiest way to filter a file based on user input (updated)
in thread Easiest way to filter a file based on user input
I added the line $limit = abs($limit); (see abs) because I wasn't sure of your original specification, as I asked in my post. Also, note that -places=N is documented as: "the number is assumed to have exactly N places after the radix point" and even goes on to show an example: "$RE{num}{real}{-places=>2} # matches 123.45 or -0.12", and your input isn't in that format. Take some time to look into the documentation and then try removing the line with abs, as well as "{-places=>2}" from the regex.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Easiest way to filter a file based on user input
by Peter Keystrokes (Beadle) on Jul 16, 2017 at 13:14 UTC | |
by haukex (Archbishop) on Jul 16, 2017 at 14:05 UTC | |
by Peter Keystrokes (Beadle) on Jul 16, 2017 at 16:23 UTC |