ultranerds has asked for the wisdom of the Perl Monks concerning the following question:
$field = "abc"; if ($field > 0) { print "its a number" }
Whats the reason for this?$field = "1abc"; if ($field > 0) { print "its a number" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question re numbers and strings
by moritz (Cardinal) on Jan 13, 2011 at 08:57 UTC | |
by ultranerds (Hermit) on Jan 13, 2011 at 09:06 UTC | |
by ww (Archbishop) on Jan 13, 2011 at 13:14 UTC | |
|
Re: Question re numbers and strings
by cdarke (Prior) on Jan 13, 2011 at 08:57 UTC | |
|
Re: Question re numbers and strings
by syphilis (Archbishop) on Jan 13, 2011 at 09:10 UTC | |
|
Re: Question re numbers and strings
by Anonymous Monk on Jan 13, 2011 at 08:54 UTC | |
|
Re: Question re numbers and strings
by pat_mc (Pilgrim) on Jan 13, 2011 at 09:05 UTC | |
|
Re: Question re numbers and strings
by locked_user sundialsvc4 (Abbot) on Jan 13, 2011 at 12:58 UTC | |
by Anonymous Monk on Jan 13, 2011 at 14:17 UTC | |
|
Re: Question re numbers and strings
by ikegami (Patriarch) on Jan 13, 2011 at 17:20 UTC |