in reply to Perl Module returning a not true value

Check to be sure that you properly copied TicTacToe.pm. Make sure your copy ends with the line:

1;

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Perl Module returning a not true value
by jjdraco (Scribe) on Sep 04, 2002 at 19:55 UTC
    ok i see, i deleted that line thinking it was nothing. so all that line does is return a true value? Is that line always in a module?

    thanks

    jjdraco
      so all that line does is return a true value?

      Yes.

      Is that line always in a module?

      Almost always. As you discovered, the module has to return a true value when it is loaded. By convention, modules are usually ended with a "1;" to ensure that the required true value is returned. Any true value will do though.

      -sauoq
      "My two cents aren't worth a dime.";