1deprecate(3pm)         Perl Programmers Reference Guide         deprecate(3pm)
2
3
4

NAME

6       deprecate - Perl pragma for deprecating the core version of a module
7

SYNOPSIS

9           use deprecate;  # always deprecate the module in which this occurs
10
11           use if $] > 5.010, 'deprecate'; # conditionally deprecate the module
12

DESCRIPTION

14       This module is used using "use deprecate;" (or something that calls
15       "deprecate->import()", for example "use if COND, deprecate;").
16
17       If the module that includes "use deprecate" is located in a core
18       library directory, a deprecation warning is issued, encouraging the
19       user to use the version on CPAN.  If that module is located in a site
20       library, it is the CPAN version, and no warning is issued.
21
22   EXPORT
23       None by default.  The only method is "import", called by "use
24       deprecate;".
25

SEE ALSO

27       First example to "use deprecate;" was Switch.
28

AUTHOR

30       Original version by Nicholas Clark
31
33       Copyright (C) 2009, 2011
34
35       This library is free software; you can redistribute it and/or modify it
36       under the same terms as Perl itself, either Perl version 5.10.0 or, at
37       your option, any later version of Perl 5 you may have available.
38
39
40
41perl v5.28.2                      2018-03-01                    deprecate(3pm)
Impressum