Padre::Document::Perl::Starter - Starter module for Perl 5 documents
Padre::Document::Perl::Starter provides support for generating Perl 5 documents and projects of various types.
my $starter = Padre::Document::Perl::Starter->new($main);
The new constructor creates a new code generator, taking the main window object as a parameter.
new
The style accessor returns the default code style for modules as a Padre::Document::Perl::Starter::Style object. Any style values provided to a specific create method will override these defaults.
style
The main accessor returns the main window object.
main
The current accessor returns a Padre::Current object for the current context.
current
Padre::Current
$starter->create_script;
Create a new blank Perl 5 script, applying the user's style preferences if possible.
$starter->create_module( module => $package );
Create a new empty Perl 5 module, applying the user's style preferences if possible. If passed a package name, that module will be created.
If no package name is provided, the user will be asked for the name to use.
$starter->create_test;
Create a new empty Perl 5 test, applying the user's style preferences if possible.
$starter->create_text_compile;
Create a new empty Perl 5 test for compilation testing of all the code in your project, so that further tests can use your modules as normal without doing any load testing of their own.
Copyright 2008-2013 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Padre, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre
CPAN shell
perl -MCPAN -e shell install Padre
For more information on module installation, please visit the detailed CPAN module installation guide.