Acme-Monkey
view release on metacpan or search on metacpan
lib/Acme/Monkey.pm view on Meta::CPAN
package Acme::Monkey;
=head1 NAME
Acme::Monkey - Monkeys here, monkeys there, MONKEYS everywhere!
=head1 ISOPONYS
use Acme::Monkey;
my $conway = Acme::Monkey->new();
my $wall = Acme::Monkey->new();
$wall->groom( $conway );
$conway->dump();
I so ponys, I so ponys.
=head1 DESCRIPTION
This module is a collaborative effort of several ValueClick Media
employees. We developed this module to coincide with the
YAPC::NA 2007 conference in Houston, TX. In the conference SWAG
bag we distributed about 275 monkey balls with the ValueClick logo
and a reference to this module.
This module is better than sliced gravy.
Make sure you check out the supporting scripts - monkey_life.pl
and monkey_ship.pl.
=cut
use strict;
use warnings;
use Time::HiRes qw(usleep);
use File::Find;
$SIG{__WARN__} = sub{ print STDERR "grrrr\n"; };
$SIG{__DIE__} = sub{ print STDERR shift()."! eeek eeek!\n"; exit 1; };
our $VERSION = 4.99;
# Need...all other platforms
our %os_clrscr_commands = (
'linux' => 'clear',
'MSWin32' => 'cls',
);
our $CLEAR_COMMAND = $os_clrscr_commands{$^O};
=head1 METHODS
=head2 new
=cut
sub new {
my $class = shift;
my $self = bless {}, $class;
$self->{hunger} = 80;
$self->{happiness} = 50;
$self->{drunkness} = 0;
$self->{sub} = undef;
return $self;
}
sub monkey {
print "Monkey!\n";
}
=head2 bastardize
$monkey->bastardize( $object );
Add some useful features to any object.
=cut
#sub bastardize {
# $self = splice( @_, 0 ,1 );
# { # Retrieve arguments of parameter.
# no strict; $object = shift
( run in 0.696 second using v1.01-cache-2.11-cpan-5a3173703d6 )