Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Moose Cookbook - Meta Recipe 5 Won't Run

by Anonymous Monk
on Jan 12, 2012 at 04:06 UTC ( [id://947482]=note: print w/replies, xml ) Need Help??


in reply to Moose Cookbook - Meta Recipe 5 Won't Run

I can't find it now, but IIRC, there is a tarball (or github repository) or the moose cookbook examples, so I would look for it, to see the file-layout

This works

BEGIN { package MyApp::Meta::Class::Trait::HasTable; use Moose::Role; has table => ( is => 'rw', isa => 'Str', ); package Moose::Meta::Class::Custom::Trait::HasTable; sub register_implementation { 'MyApp::Meta::Class::Trait::HasTable' } } package MyApp::User; use Moose -traits => 'HasTable'; __PACKAGE__->meta->table('User');

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-18 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found