Moose Lightning Talk

2,177 views

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
2,177
On SlideShare
0
From Embeds
0
Number of Embeds
26
Actions
Shares
0
Downloads
34
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

×