Skip to content

Mouse fails under ModPerl::Registry #60

@guimard

Description

@guimard

Hi,
I'm using Mouse (2.4.5) under Debian testing (mod_perl 2.0.9, Perl 5.22.1). This simple test fails:

  • CGI:

    package main;
    use CGI;
    require '/tmp/test.pm';
    my $q = CGI->new();
    print $q->header( -type => 'text/html' );
    print 'OK';

  • Mouse package (/tmp/test.pm):

    package My;
    use strict;
    use Mouse;
    has a => ( is => 'rw' );
    1;

  • Result in Apache logs when trying to load CGI: No package name defined at /usr/lib/x86_64-linux-gnu/perl5/5.22/Mouse.pm line 137.\nBEGIN failed--compilation aborted at /tmp/test.pm line 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions