in reply to renaming a package

MakeMaker needs everything you need to calculate the version to be on a single line:
use Log::Writer; our $VERSION = $Log::Writer::VERSION;
A completely different approach to replace your entire file:
*MWLOG:: = \%Log::Writer::;
Do you have Makefile.PL set to extract the distribution's version from MWLOG.pm rather than Log::Writer.pm?

Replies are listed 'Best First'.
Re: Re: renaming a package
by mifflin (Curate) on Apr 30, 2004 at 21:33 UTC
    my orignal post shows that I tried
    our $VERSION = $Log::Writer::VERSION;
    and although it works, MakeMaker doesn't like it. (see the error ^^^ that running perl Makefile.PL spews out when this line of code is in MWLOG.pm)

    do you know of anyway to get around that?
      Yes, put the use Log::Writer on the same line as I showed. MakeMaker extracts a single line from the file and eval's it; without the "use" on the same line, $Log::Writer::VERSION will be undefined (because MakeMaker won't have use'd it).
        you're a saint!
        thanks much.