Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Moose: does not export its sugar to the 'main' package

by Angharad (Pilgrim)
on Jun 29, 2010 at 16:14 UTC ( [id://847147]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Mouse does not export its sugar to the 'main' package.
    Can't locate object method "new" via package "Mouse" at test.pl line 2
    +2.
    
  2. or download this
    package Animal;
    
    ...
    
    
    1;
    
  3. or download this
    package Mouse;
    
    ...
    };
    no Moose;
    1;
    
  4. or download this
    #!/usr/local/bin/perl -w
    
    ...
    
    my $mickey = Mouse->new(name => 'Mickey');
    $mickey->speak;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://847147]
Approved by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found