On Mon, Nov 17, 2008 at 11:04, Richard Lee <[EMAIL PROTECTED]> wrote: snip > but I am suprised that perl doesn't have neutral equator......
How would you suggest it handle my $boolean = " 123 " magic_smart_compare "123"; string compare is false numeric compare is true both look like numbers to looks_like_number both have a string value set (i.e. a SVpv value) and no numeric value set (i.e. no SViv or SVnv values) There is no way Perl can decided what to do; it doesn't have enough information. This is why you must choose how you are going to compare the values. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/