in reply to Understanding the Test module's "ok" subroutine

Which testing module is being used? Test behave the way you are expecting, but Test::More and Test::Simple expect the first argument to be either true or false and the second (optional) argument to be a name for the test.
My guess is that h2xs has the test harness using Test::More.

Replies are listed 'Best First'.
Re^2: Understanding h2xs's "ok" subroutine
by esharris (Monk) on Sep 10, 2004 at 17:36 UTC
    You're right! I had an old h2xs that "use Test". The current h2xs "use Test::More". That's a gotcha. Thanks Again, Earl