NAME
Module::New::Recipe
SYNOPSIS
package Your::Module::New::Recipe::Something;
use strict;
use warnings;
use Module::New::Recipe;
use Module::New::Command::Basic;
available_options ();
flow {
guess_root;
loop {
do_something;
};
};
1;
DESCRIPTION
This is a base class which provides basic DSLish commands to define recipes. See also Module::New::Command::Basic.
FUNCTIONS TO DEFINE RECIPES
available_options
defines command line option specifications which will be passed to Getopt::Long::Parser.
flow
defines a recipe/command flow. All the commands in the flow would take $self and all the arguments passed through the command line.
loop
defines an internal loop. All the commands in the loop would take $self and an argument per iteration.
AUTHOR
Kenichi Ishigaki, <ishigaki@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2007-2009 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.