in reply to String/Numeric Manipulation
if( $days =~ m/^\d+$/ ) { ~ ~ all your code that depends on $days being numeric } else { ~ ~ print nicely nasty message about bad input }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: String/Numeric Manipulation
by Ms. T. (Novice) on Oct 07, 2004 at 19:30 UTC | |
by shenme (Priest) on Oct 07, 2004 at 19:52 UTC | |
|
Re^2: String/Numeric Manipulation
by revdiablo (Prior) on Oct 07, 2004 at 23:02 UTC |