aboutsummaryrefslogtreecommitdiff
path: root/lib/Example/Foobar/limerick.pm
blob: 790210c6a7dc9bb23f7c925d3fa7e7efd0bc45df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package Example::Foobar::limerick;

=head1 NAME

limerick - prints a limerick

=cut

use strict;
use warnings;

=head1 DESCRIPTION

There's hardly any need to comment.  The code is pretty straightforward.
The constructor is trivial.  The B<run> method prints a limerick of
questionable quality and returns.

=cut

sub new {
    bless {}, shift
}

sub run {
    my $self = shift;
    print <<EOT
There was a young man of high station
Who was found by a pious relation
        Making love in a ditch
        To -- I won't say a bitch --
But a woman of no reputation.
EOT
;	
}

1;

Return to:

Send suggestions and report system problems to the System administrator.