in reply to Handling both string and numeric comparisons
another way might work with sprintf().my $isnum = 1 if ($param =~ /^\d+$/);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Handling both string and numeric comparisons
by chromatic (Archbishop) on May 12, 2005 at 14:58 UTC |