Type Coercions (cont.)
Using the coercions
- The following lines ...
my $app = Web::App->new(request => { foo => "bar" });
my $app = Web::App->new(request => CGI->new(foo => "bar"));
- are equivalent to ..
| moose |
Using the coercions
my $app = Web::App->new(request => { foo => "bar" });
my $app = Web::App->new(request => CGI->new(foo => "bar"));