Anansi-Script-Shell
view release on metacpan or search on metacpan
lib/Anansi/Script/Shell.pm view on Meta::CPAN
package Anansi::Script::Shell;
=head1 NAME
Anansi::Script::Shell - Defines the mechanisms specific to handling command line execution.
=head1 SYNOPSIS
my $OBJECT = Anansi::Script::Shell->new();
=head1 DESCRIPTION
This module is designed to be an optional component module for use by the
L<Anansi::Script> component management module. It defines the processes
specific to handling both input and output from Perl scripts that are executed
from a command line. Uses L<Anansi::ComponentManager> I<(indirectly)>,
L<Anansi::ScriptComponent> and L<base>.
=cut
our $VERSION = '0.05';
use base qw(Anansi::ScriptComponent);
=head1 INHERITED METHODS
=cut
=head2 addChannel
Declared in L<Anansi::Component>.
=cut
=head2 channel
Declared in L<Anansi::Component>.
=cut
=head2 componentManagers
Declared in L<Anansi::Component>.
=cut
=head2 finalise
$OBJECT->SUPER::finalise();
$OBJECT->Anansi::Script::Shell::finalise();
Declared in L<Anansi::Class>. Overridden by this module.
=cut
sub finalise {
my ($self, %parameters) = @_;
print $self->content();
}
=head2 implicate
Declared in L<Anansi::Class>. Intended to be overridden by an extending module.
=cut
=head2 import
Declared in L<Anansi::Class>.
=cut
=head2 initialise
$OBJECT->SUPER::initialise();
$OBJECT->Anansi::Script::Shell::initialise();
Declared in L<Anansi::Class>. Overridden by this module.
=cut
sub initialise {
my ($self, %parameters) = @_;
$self->loadParameters(%parameters);
$self->content();
}
=head2 old
Declared in L<Anansi::Class>.
=cut
=head2 removeChannel
Declared in L<Anansi::Component>.
=cut
=head2 used
Declared in L<Anansi::Class>.
=cut
=head2 uses
Declared in L<Anansi::Class>.
=cut
=head1 METHODS
=cut
=head2 content
my $contents = $OBJECT->content();
if(1 == $OBJECT->content(undef, undef));
if(1 == $OBJECT->channel('CONTENT', undef));
if(1 == $OBJECT->content(undef, 'some content'));
if(1 == $OBJECT->channel('CONTENT', 'some content'));
( run in 0.644 second using v1.01-cache-2.11-cpan-39bf76dae61 )