in reply to CPAN module strangeness

The last statement of the module must return true for it to load. That's why you'll almost always see 1; at the end of a module. I just checked, and the file does have a 1; at the end. Something got modified or you wouldn't be getting that error.

Replies are listed 'Best First'.
Re^2: CPAN module strangeness
by brian_d_foy (Abbot) on Apr 05, 2005 at 19:06 UTC

    To be clear: it's the last evaluated statement that must be true, and that's not necessarily the last statement in the file. :)

    --
    brian d foy <brian@stonehenge.com>
Re^2: CPAN module strangeness
by cog (Parson) on Apr 05, 2005 at 17:40 UTC
    If 5.6.0 requires the "1;" at the end, the problem might well be that the POD is after that "1;"... I don't know, but if he removes the POD and it starts working... could be that...

      The last statement must evaluate to true, not necessarily the last line.

        Then again, you probably don't have 5.6.0, or do you? O:-)