Skip to content

Instantly share code, notes, and snippets.

@dhoss
Created November 2, 2009 19:25
Show Gist options
  • Save dhoss/224392 to your computer and use it in GitHub Desktop.
Save dhoss/224392 to your computer and use it in GitHub Desktop.
+my $cgi = new CGI;
-$app = $class->new( %param ) or die $class->errstr;
+$app = $class->new( %param, CGIObject => $cgi ) or die $class->errstr;
local $SIG{__WARN__} = sub { $app->trace($_[0]) };
+$app->init_request(CGIObject => $cgi);
$app->run;
## MAKE THIS A REAL FUCKING DIFF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment