Created
November 30, 2016 22:47
-
-
Save exodist/00532ae04d48146e461addb3ed9c4bbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (my $file = readdir($PSGI_DIR)) { | |
next if $file eq 'dev_dev.psgi'; | |
next if $file =~ m/mock/i; | |
next unless $file =~ m/^(.*)_dev\.psgi$/; | |
my $name = $1; | |
local $@; | |
$APPS{$name} = eval "package $name; do '$PATH/$file'" | |
or print STDERR "Failed to load $file: $@"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment