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 ..
my $app = Web::App->new(
request => Web::Request->new(params => { foo => "bar" })
);