Acme::UNIVERSAL::can::t - the opposite of UNIVERSAL::can
use strict; use warnings; use Test::More; { package Foo; sub bar { ... } } use_ok("Acme::UNIVERSAL::can't"); ok(Foo->can("bar")); ok(Foo->can't("baz")); done_testing;
This module will tell you what methods can't be called on an object or class. The opposite of UNIVERSAL::can.
UNIVERSAL::can
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Acme-UNIVERSAL-can-t.
UNIVERSAL.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2018 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Acme::UNIVERSAL::can::t, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::UNIVERSAL::can::t
CPAN shell
perl -MCPAN -e shell install Acme::UNIVERSAL::can::t
For more information on module installation, please visit the detailed CPAN module installation guide.