Acme-Cow
view release on metacpan or search on metacpan
=item Parameters
A list of key-value pairs. If you plan to use an external file as
the template, you probably want to say:
$x = new Acme::Cow(File => 'file.cow');
=item Returns
A blessed reference to an C<Acme::Cow>.
=back
=cut
sub new
{
my $proto = shift;
my $class = ref $proto || $proto;
my %args = @_;
wrap => 40,
mode => 'say',
fill => 1,
over => 0,
text => undef,
el => 'o',
er => 'o',
U => ' ',
%args,
};
bless $self, $class;
}
=pod
=head2 over
Specify (or retrieve) how far to the right (in spaces) the text
balloon should be shoved.
=over 4
Cow/DragonAndCow.pm view on Meta::CPAN
\____({$el}{$er}) *. \} \{ /
( (--) .----~-.\ \-` .~
//__\\ \__ Ack! ///.----..< \ _ -~
// \\ ///-._ _ _ _ _ _ _\{^ - - - - ~
EOC
sub new
{
my $proto = shift;
my $class = ref $proto || $proto;
my $self = $class->SUPER::new();
return bless $self, $class;
}
sub as_string
{
my $self = shift;
return $self->SUPER::as_string($dragon_and_cow);
}
Cow/Frogs.pm view on Meta::CPAN
\__|\ | (-___-) | /|__/
' '--' ==`-'== '--' '
EOC
sub new
{
my $proto = shift;
my $class = ref $proto || $proto;
my $self = $class->SUPER::new();
$self->over(46);
return bless $self, $class;
}
sub as_string
{
my $self = shift;
return $self->SUPER::as_string($frogs);
}
1;
Cow/MechAndCow.pm view on Meta::CPAN
{$U} ||----w | ___,;`----'.___L_,-'`\__
|| || i_____;----\.____i""\____\
EOC
sub new
{
my $proto = shift;
my $class = ref $proto || $proto;
my $self = $class->SUPER::new();
$self->over(10);
return bless $self, $class;
}
sub as_string
{
my $self = shift;
return $self->SUPER::as_string($mech_and_cow);
}
1;
Cow/Stegosaurus.pm view on Meta::CPAN
| / | / ~-. `-. _ _ _
|_____| |_____| ~ - . _ _ _ _ _>
EOC
sub new
{
my $proto = shift;
my $class = ref $proto || $proto;
my $self = $class->SUPER::new();
$self->over(20);
return bless $self, $class;
}
sub as_string
{
my $self = shift;
return $self->SUPER::as_string($stegosaurus);
}
1;
Cow/TextBalloon.pm view on Meta::CPAN
{
my $proto = shift;
my $class = ref $proto || $proto;
my $self = {
fill => 1,
mode => 'say',
over => 0,
text => [ ],
wrap => 40,
};
return bless $self, $class;
}
sub wrapcolumn
{
my $self = shift;
if (@_) {
$self->{'wrap'} = $_[0];
}
return $self->{'wrap'};
}
Cow/TuxStab.pm view on Meta::CPAN
,' ,-----' | \
`--\{__________) \/
EOC
sub new
{
my $proto = shift;
my $class = ref $proto || $proto;
my $self = $class->SUPER::new();
$self->over(8);
return bless $self, $class;
}
sub as_string
{
my $self = shift;
return $self->SUPER::as_string($tux_being_stabbed);
}
1;
Insert cute ASCII art here
EOC
sub new
\{
my $proto = shift;
my $class = ref $proto || $proto;
my $self = $class->SUPER::new();
return bless $self, $class;
\}
sub as_string
\{
my $self = shifT;
return $self->SUPER::as_string(${$name});
\}
1;
EOF
( run in 0.803 second using v1.01-cache-2.11-cpan-de7293f3b23 )