szabgab has asked for the wisdom of the Perl Monks concerning the following question:
Both sides are Strings though they are both numish strings. IMHO they should be compared as numbers but they are compared as strings. Does anyone have an explanation why is that so?"42" ~~ "42.0"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "42" ~~ "42.0" is false in 5.10
by syphilis (Archbishop) on Dec 24, 2007 at 13:17 UTC | |
by tomfahle (Priest) on Jan 24, 2008 at 17:09 UTC | |
|
Re: "42" ~~ "42.0" is false in 5.10
by FunkyMonk (Bishop) on Dec 24, 2007 at 13:09 UTC | |
by szabgab (Priest) on Dec 24, 2007 at 13:13 UTC | |
by jettero (Monsignor) on Dec 24, 2007 at 13:12 UTC | |
|
Re: "42" ~~ "42.0" is false in 5.10
by TOD (Friar) on Dec 24, 2007 at 13:07 UTC | |
|
Re: "42" ~~ "42.0" is false in 5.10
by ysth (Canon) on Dec 24, 2007 at 21:23 UTC | |
by FunkyMonk (Bishop) on Dec 25, 2007 at 02:00 UTC |