Methods::CheckNames - Statically check for named methods
my Foo $object; $object->method(); # dies at compile time unless a method can be found
This module enables simplistic checking of method names for typed my variables.
It's not much more than a proof of concept.
Use the can meta method instead of gv_fetchmethod
can
gv_fetchmethod
Make the checking pluggable
This module is maintained using git. You can get the latest version from git://github.com/rafl/methods-checknames.git.
Yuval Kogman <nothingmuch@woobling.org>
Copyright (c) 2008 Yuval Kogman. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Methods::CheckNames, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Methods::CheckNames
CPAN shell
perl -MCPAN -e shell install Methods::CheckNames
For more information on module installation, please visit the detailed CPAN module installation guide.