in reply to numeric comparison
should do the trick.unless ($foo =~ /^\-?\d*\.?\d*$/) { # do something }
Hope that helps.
-- Foxcub
#include www.liquidfusion.org.uk
Update: Doh, updated regexp to something that stands a chance in hell of actually working .. (thanks, antirice)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: numeric comparison
by antirice (Priest) on Jul 15, 2003 at 09:17 UTC |