Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Announcing MooX::Press

by tobyink (Canon)
on Oct 25, 2019 at 12:37 UTC ( [id://11107953]=perlnews: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      package MyApp {
        use MooX::Press class => ['Foo', 'Bar'];
      }
      
      my $thing1 = MyApp::Foo->new();
      my $thing2 = MyApp->new_foo();   # alternative constructor
    
  2. or download this
      package MyApp::Zoo;
      use MooX::Press (
        role => [
    ...
          },
        ],
      );
    
  3. or download this
      use Moo;
      use MyApp::Zoo::Types qw(Kangaroo);
      
      has mascot => (is => 'ro', isa => Kangaroo);
    
  4. or download this
      use MyApp::Zoo::Types qw(is_Kangaroo);
      
      $thing->jump if is_Kangaroo($thing);
    
  5. or download this
      use MyApp::Zoo ();
      
      my $lenny = MyApp::Zoo->new_shark(name => 'Lenny');
    ...
      my $tank = MyApp::Zoo::Enclosure::Tank->new(
        animals => [ $lenny ],
      );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-03-29 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found