Padre::Document::Perl::Starter(3pm)

Padre::Document::Perl::Starter3pm

Starter module for perl 5 documents

Overview

Padre::Document::Perl::Starter provides support for generating Perl 5 documents and projects of various types.

Methods

new

  my $starter = Padre::Document::Perl::Starter->new($main);

The "new" constructor creates a new code generator, taking the main window object as a parameter.

style

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.

main

The "main" accessor returns the main window object.

current

The "current" accessor returns a "Padre::Current" object for the current context.

create_script

    $starter->create_script;

Create a new blank Perl 5 script, applying the user's style preferences if possible.

create_module

    $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.

create_test

    $starter->create_test;

Create a new empty Perl 5 test, applying the user's style preferences if possible.

create_test_compile

    $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.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From padre 1.00+dfsg-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.