in reply to check if its a number
Perl warns me "Argument "name" isn't numeric in addition (+)" How does Perl know it isn't a number? Is the method available through a function?my $foo = 'name'; print $foo + 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: check if its a number
by nobull (Friar) on Apr 12, 2008 at 14:23 UTC | |
|
Re^2: check if its a number
by parv (Parson) on Apr 12, 2008 at 09:31 UTC |