Sub::Deprecated - Warn when deprecated subroutines are used
Add the :Deprecated attribute to a subroutine to automatically produce a warning
when used.
sub old_method : Deprecated(v1.4) {
...
}
sub older_method : Deprecated(v1.4, 'Use new_method instead.') {
...
}
Provides a :Deprecated attribute for subroutines that can be used to
decorate deprecated subroutines. The decorator produces a warning using the
supplied version string and optional message.
Inspired by Sub::Private which provides a :Private attribute
for subroutines.
Nathaniel G. Nutter nnutter@cpan.org
Copyright 2013 - Nathaniel G. Nutter
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
