in reply to Unknown error

The problem is that the arguments of use base are supposed to be strings. Change your code to this:

use strict; use base 'Exporter'; 1;

You'll also need to have that final 'true' value, or there will be an error loading your module. (Try it and see.)

We're building the house of the future together.

Replies are listed 'Best First'.
Re^2: Unknown error
by Anonymous Monk on Mar 01, 2006 at 16:28 UTC
    Yes I know (now). "perl x.pm" explained it to me. As I said in the OP. My question is about the diff in use vs main. And in older perl a word (especially a package name) would be seen as a string const of itself when no function of this name was declared. Why not here? In e.g. new it is so.
      What difference? Copy and paste
      A reply falls below the community's threshold of quality. You may see it by logging in.