Moose
     Lightning Talk for Spring UKUUG '08
Mike Whitaker - Yahoo! UK / EnlightenedPerl.org




                       ...
package Person;
use Moose;

has name => ( isa => Str, is => 'rw' );
has born => ( isa => DateTime,
              is => 'ro...
# elsewhere

use Person;
my $person = Person->new(
  {name => Mike,
  born => DateTime->new(1963-08-05)}
  );

$person->in...
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Moose Lightning Talk
Upcoming SlideShare
Loading in...5
×

Moose Lightning Talk

1,925

Published on

5 min lightning talk on the Moose object system for Perl 5

Published in: Technology, Business
1 Comment
3 Likes
Statistics
Notes
  • Perl OOP. Very good introduction to Moose by examples
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
1,925
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
33
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

Moose Lightning Talk

  1. 1. Moose Lightning Talk for Spring UKUUG '08 Mike Whitaker - Yahoo! UK / EnlightenedPerl.org 1
  2. 2. package Person; use Moose; has name => ( isa => Str, is => 'rw' ); has born => ( isa => DateTime, is => 'ro' ); sub introduce { my $self = shift; print $self->name(); } 2
  3. 3. # elsewhere use Person; my $person = Person->new( {name => Mike, born => DateTime->new(1963-08-05)} ); $person->introduce(); > Mike 3
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×