Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

pmfunc (1)

Name

pmfunc - cat out a function from a module

Synopsis

Please see following description for synopsis

Description

User Contributed Perl Documentation                                  PMFUNC(1)



NAME
       pmfunc - cat out a function from a module

DESCRIPTION
       Given a fully-qualified function, this program opens up the file and
       attempts to cat out the source for that function.

EXAMPLES
           $ pmfunc Cwd::getcwd
           sub getcwd
           {
               abs_path('.');
           }

RESTRICTIONS
       Only subroutines that are defined in the normal fashion are seen, since
       a simple pattern-match is what does the extraction.  Those loaded other
       ways, such as via AUTOLOAD, typeglob aliasing, or in an "eval", will
       all necessarily be missed.

       This is mostly here for people who are too lazy to type

           sed '/^sub getcwd/,/}/p' `pmpath Cwd`
       or
           perl -ne 'print if /^sub\s+getcwd\b/ .. /}/' `pmpath Cwd`

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


       +---------------+----------------------------+
       |ATTRIBUTE TYPE |      ATTRIBUTE VALUE       |
       +---------------+----------------------------+
       |Availability   | library/perl-5/pmtools-532 |
       +---------------+----------------------------+
       |Stability      | Uncommitted                |
       +---------------+----------------------------+

SEE ALSO
AUTHORS and COPYRIGHTS
       Copyright (C) 1999 Tom Christiansen.

       Copyright (C) 2006-2014 Mark Leighton Fisher.

LICENSE
       This is free software; you can redistribute it and/or modify it under
       the terms of either: (a) the GNU General Public License as published by
       the Free Software Foundation; either version 1, or (at your option) any
       later version, or (b) the Perl "Artistic License".  (This is the Perl 5
       licensing scheme.)

       Please note this is a change from the original pmtools-1.00 (still
       available on CPAN), as pmtools-1.00 were licensed only under the Perl
       "Artistic License".



NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://search.cpan.org/CPAN/authors/id/M/ML/MLFISHER/pmtools-2.0.0.tar.gz.

       Further information about this software can be found on the open source
       community website at http://search.cpan.org/dist/pmtools/.



perl v5.32.0                      2014-02-04                         PMFUNC(1)