| 1 | package Acme::Cow::MechAndCow; | ||
| 2 | use strict; | ||
| 3 | use Acme::Cow; | ||
| 4 | @Acme::Cow::MechAndCow::ISA = qw(Acme::Cow); | ||
| 5 | my $mech_and_cow = <<'EOC'; | ||
| 6 | {$balloon} | ||
| 7 | {$tl} ,-----. | ||
| 8 | {$tl} | | | ||
| 9 | {$tl} ,--| |-. | ||
| 10 | __,----| | | | | ||
| 11 | ,;:: | `_____' | | ||
| 12 | `._______| i^i | | ||
| 13 | `----| |---'| . | ||
| 14 | ,-------._| |== ||// | ||
| 15 | | |_|P`. /'/ | ||
| 16 | `-------' 'Y Y/'/' | ||
| 17 | .==\ /_\ | ||
| 18 | ^__^ / /'| `i | ||
| 19 | ({$el}{$er})\_______ /' / | | | ||
| 20 | (__)\ )\/\ /' / | `i | ||
| 21 | {$U} ||----w | ___,;`----'.___L_,-'`\__ | ||
| 22 | || || i_____;----\.____i""\____\ | ||
| 23 | EOC | ||
| 24 | |||
| 25 | sub new | ||
| 26 | { | ||
| 27 | my $proto = shift; | ||
| 28 | my $class = ref $proto || $proto; | ||
| 29 | my $self = $class->SUPER::new(); | ||
| 30 | $self->over(10); | ||
| 31 | return bless $self, $class; | ||
| 32 | } | ||
| 33 | |||
| 34 | sub as_string | ||
| 35 | { | ||
| 36 | my $self = shift; | ||
| 37 | return $self->SUPER::as_string($mech_and_cow); | ||
| 38 | } | ||
| 39 | |||
| 40 | 1; |