File Coverage

blib/lib/Acme/Buffalo/Buffalo.pm
Criterion Covered Total %
statement 9 11 81.8
branch 0 2 0.0
condition n/a
subroutine 3 5 60.0
pod 2 2 100.0
total 14 20 70.0


line stmt bran cond sub pod time code
1             package Acme::Buffalo::Buffalo;
2              
3 1     1   30802 use 5.006;
  1         4  
  1         43  
4 1     1   15 use strict;
  1         2  
  1         47  
5              
6 1     1   6 use Exporter qw(import);
  1         7  
  1         141  
7              
8             our @EXPORT = qw(Buffalo buffalo);
9              
10             our $VERSION = '0.01';
11              
12 0 0   0 1   sub Buffalo (@) { $_[0] eq 'buffalo' ? 'buffalo' : undef; }
13 0     0 1   sub buffalo { return 'buffalo'; }
14              
15             =head1 NAME
16              
17             Acme::Buffalo::Buffalo - Perl extension to buffalo buffalo
18              
19             =cut
20              
21             =head1 SYNOPSIS
22              
23             use Acme::Buffalo::Buffalo;
24              
25             Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo;
26              
27             =head1 DESCRIPTION
28              
29             Acme::Buffalo::Buffalo makes the grammatically-correct American English
30             sentence 'Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo'
31             compile and run in Perl.
32              
33             =head1 SUBROUTINES
34              
35             Both are exported by default.
36              
37             =head2 Buffalo
38              
39             Accepts an array. Returns 'buffalo' if first argument is 'buffalo', otherwise
40             undef.
41              
42             =head2 buffalo
43              
44             Returns 'buffalo'.
45              
46             =head1 BUFFALO BUGS
47              
48             Buffalo() cannot be called without arguments, due to the limitations of prototypes.
49              
50             =head1 SEE ALSO
51              
52             https://en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffalo_buffalo_buffalo_Buffalo_buffalo
53              
54             =head1 AUTHOR AND BUFFALO
55              
56             Elizabeth Cholet, C<< >>
57              
58             Copyright 2014, All Rights Buffaloed. This module is released under the same buffalos as Perl itself.
59              
60             =cut
61              
62              
63