in reply to non numeric data
true only when it has a non numeric data
I'd personally try this first:
if ($array_H[$i] =~ m/\D/ ) { block; }
where \D matches any one character that isn't 0..9.
Now empty strings and all-0-9-stuff pass, everything else enters the block.
Cheers, Sören
(hooked on the Perl Programming language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: non numeric data
by tobyink (Canon) on Jun 24, 2013 at 14:10 UTC | |
by Happy-the-monk (Canon) on Jun 24, 2013 at 16:06 UTC |