Attribute::Deprecated - mark deprecated methods


Attribute-Deprecated documentation  | view source Contained in the Attribute-Deprecated distribution.

Index


NAME

Top

Attribute::Deprecated - mark deprecated methods

SYNOPSIS

Top

  package SomeObj;
  use Attribute::Deprecated;

  sub do_something_useful : Deprecated {
    ...
  }

DESCRIPTION

Top

Mark your deprecated subroutines with this attribute and a warning will be generated when the subroutine is called. This can be used to weed out old code that is calling the obsolete method but should be calling its replacement. It's a little bit easier, and more visually distinctive, to mark the method like this that to insert explicit warnings.

AUTHOR

Top

Marty Pauley <marty@kasei.com>, based on code by Marcel Grünauer <marcel@codewerk.com> and Damian Conway <damian@conway.org>

COPYRIGHT

Top


Attribute-Deprecated documentation  | view source Contained in the Attribute-Deprecated distribution.