File Coverage

blib/lib/Acme/UNIVERSAL/cannot.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 2 0.0
total 14 16 87.5


line stmt bran cond sub pod time code
1             package Acme::UNIVERSAL::cannot;
2              
3 3     3   40144 use warnings;
  3         6  
  3         121  
4 3     3   16 use strict;
  3         6  
  3         664  
5              
6             =head1 NAME
7              
8             Acme::UNIVERSAL::cannot - Just so that Acme::LOLCat->cannot('has')
9              
10             =cut
11              
12             our $VERSION = '0.01';
13              
14 6     6 0 1776 sub UNIVERSAL::cannot { ! UNIVERSAL::can(@_); }
15              
16 2     2 0 4027 sub UNIVERSAL::cant { goto \&UNIVERSAL::cannot; }
17              
18 2     2   10 sub can::t { goto \&UNIVERSAL::cannot; }
19              
20             =head1 SYNOPSIS
21              
22             use Acme::UNIVERSAL::cannot;
23             use Acme::LOLCat; # Should be fixed in 0.0.5 hopefully.
24              
25             Acme::LOLCat->cannot('has');
26             Acme::LOLCat->can't('has');
27             Acme::LOLCat->cant('has');
28              
29             =head1 BLAME
30              
31             ElPenguin made me do it.
32              
33             Nicholas Clark suggested C<< ->can't() >>
34              
35             =head1 AUTHOR
36              
37             Tomas Doran (t0m), C<< >>
38              
39             =head1 BUGS
40              
41             Please report any bugs or feature requests to C, or through
42             the web interface at L. I will be notified, and then you'll
43             automatically be notified of progress on your bug as I make changes.
44              
45             =head1 COPYRIGHT & LICENSE
46              
47             Copyright 2009 Tomas Doran, all rights reserved.
48              
49             This program is free software; you can redistribute it and/or modify it
50             under the same terms as Perl itself.
51              
52             =cut
53              
54             1; # End of Acme::UNIVERSAL::cannot