Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pmfunc(1p) [debian man page]

PMFUNC(1p)						User Contributed Perl Documentation						PMFUNC(1p)

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 /^subs+getcwd/ .. /}/' `pmpath Cwd` RESTRICTIONS
SEE ALSO
AUTHORS and COPYRIGHTS Copyright (C) 1999 Tom Christiansen. Copyright (C) 2006-2008 Mark Leighton Fisher. 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". perl v5.10.1 2010-02-22 PMFUNC(1p)

Check Out this Related Man Page

STDPODS(1p)						User Contributed Perl Documentation					       STDPODS(1p)

NAME
stdpods - print out the paths to the modules that came with Perl DESCRIPTION
This program shows the paths to module pods that are not in the site_perl directories. This is the documentation that came with the standard system. EXAMPLES
$ podgrep closure `stdpods` SEE ALSO
podgrep(1), faqpods(1), modpods(1), pods(1), podpath(1), and sitepod(1). AUTHORS and COPYRIGHTS Copyright (C) 1999 Tom Christiansen. Copyright (C) 2006-2008 Mark Leighton Fisher. 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". perl v5.10.1 2010-02-22 STDPODS(1p)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl syntax for sed searches

I am aware that Perl has a lot of features that originally came from sed and awk. I have a pattern that I am using like this: sed -n '/|Y|/p' I want to do the same thing in Perl and be able to either save that value in some kind of variable or array or potentially write it out to a file. ... (11 Replies)
Discussion started by: masinick
11 Replies

2. Shell Programming and Scripting

Print the current directory using perl

Hi I have this code to print the current directory using Perl use Cwd qw(abs_path); my $path = abs_path($0); print "$path\n"; But it is displaying my perl source code file along with the directory. like this C:\Perl\duration.pl But I want it only to display this... (1 Reply)
Discussion started by: srijith
1 Replies

3. UNIX for Advanced & Expert Users

sed not working as I expected. What can be the possible reason?

# cat test <abc> </abc> <abc> </abc> # sed 's/abc/checker/' test>test1 # cat test1 <checker> </checker> <checker> </checker> # I want the first instance of abc to be changed to checker. But all(rest 3 also) are changed. I din't used global (g) option too.. What can be the... (5 Replies)
Discussion started by: Ugenther
5 Replies

4. Shell Programming and Scripting

Perl/sed Escape Syntax Problem . . .

Greetings! I've run into this before; and am having a spot of trouble trying to figure out the way that Perl would prefer the following example syntax to be formed:#!/usr/bin/perl use strict; use warnings; use diagnostics; `sed -i 's/Hi Mom!\|Hi Dad!/Bye Everyone!/I' ./test.txt`;Perl... (5 Replies)
Discussion started by: LinQ
5 Replies