in reply to PPM has module but BugZilla says it's missing

I'm a bit worried by the "Version string" messages, but the issue doesn't seem to be down to versions.

Actually, they do suggest the problem.

I have CGI:

>perl -wle"use base 'CGI'; sub f { $CGI::VERSION } print f();" 3.49

But base can be fooled into thinking I don't:

>perl -wle"sub f { $CGI::VERSION } use base 'CGI'; print f();" -1, set by base.pm

The simplest fix (for BugZilla):

>perl -wle"sub f { ${'CGI::VERSION'} } use base 'CGI'; print f();" 3.49

Using parent instead of base would address the issue, although I don't know why either are used to simply load modules.

A workaround (for you):

perl -MCGI -MTemplate checksetup.pl

Update: Added workaround.


Comment on Re: PPM has module but BugZilla says it's missing
Select or Download Code
Re^2: PPM has module but BugZilla says it's missing
by davies (Vicar) on Sep 29, 2010 at 16:33 UTC
    The workaround works beautifully. Thank you. I'm going to log this as a bug with Mozilla and put in a reference to this thread.

    Regards,

    John Davies

    Update: logged as bug 600578, if anyone is interested.