in reply to CGI parameter of 0 behaving strangely
Because in perl, zero ('0') is false, so the 'if' test fails.