Skip to content

Instantly share code, notes, and snippets.

@chrisa
Created January 25, 2010 18:27
Show Gist options
  • Select an option

  • Save chrisa/286084 to your computer and use it in GitHub Desktop.

Select an option

Save chrisa/286084 to your computer and use it in GitHub Desktop.
# setup for CPAN, not CPANPLUS:
$ENV{PERL_AUTOINSTALL_PREFER_CPAN} = 1;
# unattended mode
$ENV{PERL_MM_USE_DEFAULT} = '1';
# Only use core and site modules
use FindBin;
use local::lib '--self-contained', "$FindBin::Bin/siteperl";
use lib "$FindBin::Bin/siteperl";
# Load the Module::Install bundled in ./inc/
use lib '.';
use inc::Module::Install;
# Define metadata
name 'MyApp';
all_from 'modules/MyApp.pm';
requires 'DateTime';
requires ... etc
auto_install;
WriteAll;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment