Module::New::Recipe::File - creates a file
From the shell/command line:
creates lib/Module/Name.pm (with ::File::Module template).
lib/Module/Name.pm
::File::Module
creates t/test.t (with ::File::Test template).
t/test.t
::File::Test
creates bin/script (with ::File::Script template).
bin/script
::File::Script
module_new file --type=MainModule Main::Module
You can explicitly specify a file type (actually a template module under the ::File namespace) with this option.
::File
module_new file Test::Module --in t
creates t/lib/Test/Module.pm, not <lib/Test/Module.pm>.
t/lib/Test/Module.pm
module_new file Test::Module --edit
If set to true, you can edit the file you created.
Kenichi Ishigaki, <ishigaki at cpan.org>
Copyright (C) 2007 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Module::New, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::New
CPAN shell
perl -MCPAN -e shell install Module::New
For more information on module installation, please visit the detailed CPAN module installation guide.