in reply to Re^4: number array with space
in thread number array with space
See looks_like_number in Scalar::Util like thus:
Update:use Scalar::Util qw(looks_like_number); for(qw(1 perl 25 monks)){ looks_like_number $_ ? print $_," is a Number",$/ : print $_," is not a Number",$/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: number array with space
by davido (Cardinal) on Jun 20, 2013 at 07:28 UTC | |
|
Re^6: number array with space
by MynameisAchint (Novice) on Jun 20, 2013 at 07:59 UTC | |
by gurpreetsingh13 (Scribe) on Jun 20, 2013 at 09:42 UTC | |
by AnomalousMonk (Archbishop) on Jun 20, 2013 at 13:08 UTC | |
by gurpreetsingh13 (Scribe) on Jun 20, 2013 at 14:11 UTC |