Last active
August 29, 2015 13:57
-
-
Save aereal/9479077 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use cartonup; | |
use Plack; |
This file contains 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
package cartonize; | |
use strict; | |
use warnings; | |
use File::Basename qw(dirname); | |
sub import { | |
my $package_dir = dirname(__FILE__); | |
# stolen from Carton::CLI->cmd_exec v0.9.15 | |
my $carton_path = $ENV{PERL_CARTON_PATH} || "$package_dir/../../local"; | |
my $lib = "$carton_path/lib/perl5"; | |
require lib::core::only; | |
require lib; | |
lib::core::only->import; | |
lib->import($lib); | |
} | |
1; |
This file contains 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
requires "Plack"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment