in reply to RE: RE (tilly) 3: The Big Test
in thread The Big Test

You say this is "correct(ish)", but I can't for the life of me think of a case where it's not correct...so why the ish? :-)

Replies are listed 'Best First'.
RE (tilly) (lots): The Big Test
by tilly (Archbishop) on Oct 18, 2000 at 05:29 UTC
    What happens if someone tosses a
    use integer;
    in at the beginning of the file? Same effect if you take that habit to many other languages.

    Just because it works doesn't mean that it isn't a really bad idea.

RE: RE: RE: RE (tilly) 3: The Big Test
by extremely (Priest) on Oct 18, 2000 at 05:34 UTC

    Because some math illiterate always tries it with 2.5 to see if a number is divisible evenly with it... ala: if ($num/2.5 == int($num/2.5)) {print "$num even!\n":} Evil!

    If they didn't understand it when they did that, how do you explain to them why they are wrong? I usually resorted to "Mr. G? Kelly has a question about her code..." =)

    --
    $you = new YOU;
    honk() if $you->love(perl)