Why am I getting inconsistent results from "ok"?
I have a perl script (which I use in a make test), where ok('','') fails.
And if one of the arguments is the number 5, I get the following warning.
"You named your test '5'. You shouldn't use numbers for your test names."
This is my understanding of "ok".
The ok routine accepts two arguments: the result from the current test and the expected result. An ok message is printed if the two arguments are equal; a not ok message is printed if they are different.
So, I expected the ok call to succeed.
I used h2xs to build the Perl extension skeleton. The resulting files are backward compatible with 5.8.3.