Skip to content

Commit

Permalink
use FindBin->again instead of FindBin::again()
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 11, 2012
1 parent b9a80d8 commit 84c3b04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Server.pm
Expand Up @@ -28,10 +28,10 @@ sub build_tx { shift->app->build_tx }
sub load_app {
my ($self, $path) = @_;

# Clean environment
# Clean environment (and reset FindBin)
{
local $0 = $path;
FindBin::again();
FindBin->again;
local $ENV{MOJO_APP_LOADER} = 1;
local $ENV{MOJO_EXE};

Expand All @@ -46,7 +46,7 @@ EOF
die qq{File "$path" did not return an application object.\n}
unless blessed $app && $app->isa('Mojo');
};
FindBin::again();
FindBin->again;

return $self->app;
}
Expand Down

0 comments on commit 84c3b04

Please sign in to comment.