Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

deprecate (3)

Name

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

Synopsis

use deprecate;  # always deprecate the module in which this occurs

use if $] > 5.010, 'deprecate'; # conditionally deprecate the module

Description

Perl Programmers Reference Guide                                  deprecate(3)



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

SYNOPSIS
           use deprecate;  # always deprecate the module in which this occurs

           use if $] > 5.010, 'deprecate'; # conditionally deprecate the module

DESCRIPTION
       This module is used using "use deprecate;" (or something that calls
       "deprecate->import()", for example "use if COND, deprecate;").

       If the module that includes "use deprecate" is located in a core
       library directory, a deprecation warning is issued, encouraging the
       user to use the version on CPAN.  If that module is located in a site
       library, it is the CPAN version, and no warning is issued.

   EXPORT
       None by default.  The only method is "import", called by "use
       deprecate;".


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-----------------------+
       |ATTRIBUTE TYPE |   ATTRIBUTE VALUE     |
       +---------------+-----------------------+
       |Availability   | runtime/perl-526      |
       +---------------+-----------------------+
       |Stability      | Pass-through volatile |
       +---------------+-----------------------+
SEE ALSO
       First example to "use deprecate;" was Switch.

AUTHOR
       Original version by Nicholas Clark

COPYRIGHT AND LICENSE
       Copyright (C) 2009, 2011

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself, either Perl version 5.10.0 or, at
       your option, any later version of Perl 5 you may have available.



NOTES
       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://www.cpan.org/src/5.0/perl-5.26.3.tar.bz2

       Further information about this software can be found on the open source
       community website at http://www.perl.org/.



perl v5.26.3                      2018-03-01                      deprecate(3)