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
Checking should be lexically scoped. Not a huge issue for now, since my Foo $var is not commonly used.
my Foo $var
This module is maintained using Darcs. You can get the latest version from http://nothingmuch.woobling.org/code, and use darcs send to commit changes.
darcs send
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.