Skip to content

Commit

Permalink
use $app instead of $handler
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jan 26, 2011
1 parent 399c191 commit 899f053
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/plackup
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ directory, that would look like:

#!/usr/bin/perl
use MyApp;
my $app = MyApp->new;
my $handler = sub { $app->run_psgi(@_) };
my $application = MyApp->new;
my $app = sub { $application->run_psgi(@_) };

The last statement of C<app.psgi> should be a code reference that is a
PSGI application.
The last statement of C<app.psgi>, in this case C<$app>, should be a
code reference that is a PSGI application.

=head1 ARGUMENTS

Expand Down

0 comments on commit 899f053

Please sign in to comment.