Bug#823217: libmouse-perl: Mouse generates a 'No package name defined' under ModPerl::Registry

Xavier x.guimard at free.fr
Tue May 3 04:00:08 UTC 2016


On 02/05/2016 13:51, Xavier Guimard wrote:
> Package: libmouse-perl
> Version: 2.4.5-1+b1
> Severity: normal
> 
> Hi all,
> 
> When "use Mouse" is called under ModPerl::Registry, it provides a strange "No
> package name defined" error. This bug affects only Debian testing, and is not
> found under Ubuntu 15.10 and Debian stable. No such error using Moose.
> 
> Regards,
> Xavier

Here is a simple CGI test that fails :

# /var/www/html/test.pl
package main;
use CGI;
require '/var/www/html/test.pm';

my $q = CGI->new();

print $q->header( -type => 'text/html' );

print '<html><body>OK</body></html>';

# /var/www/html/test.pm
package My;

use strict;
use Mouse;

has a => ( is => 'rw' );

1;



More information about the pkg-perl-maintainers mailing list