Thread Moose Delegation
(7 answers)
Opened by rosti at 2014-04-16 18:55 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 package Foo; use Moose; use CGI; has 'cgi' => ( isa => 'CGI', handles => ['header'], default => sub { CGI->new }, ); package main; my $f = Foo->new(); print $f->header; |