App-Cmd-Starter
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Module/Starter/Plugin/App/Cmd.pm view on Meta::CPAN
}
#-------------------------------------------------------------------------------
sub create_script {
my $self = shift;
my $script_dir = File::Spec->catdir($self->{basedir}, 'script');
unless (-d $script_dir) {
local @ARGV = $script_dir;
mkpath @ARGV;
$self->progress("Created $script_dir");
}
my $script_file = File::Spec->catfile($script_dir, $self->{script});
$self->create_file($script_file, <<EOT);
#! /usr/bin/env perl
use $self->{main_module};
$self->{main_module}->run;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.534 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )