Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

(dkubb) Re: (1) Find and edit module

by dkubb (Deacon)
on Sep 29, 2001 at 13:07 UTC ( #115605=note: print w/replies, xml ) Need Help??


in reply to Find and edit module

perldoc has an -m switch, which will bring up your default editor, displaying most module's full source code:

perldoc -m CGI

Replies are listed 'Best First'.
Re: (dkubb) Re: (1) Find and edit module
by jlf (Scribe) on Oct 13, 2001 at 01:56 UTC
    I believe Perldoc's -m switch runs the full source code through the pager, but not into an editor. However, localizing the Perldoc pager environment variable for a single command, like so:

    $ PERLDOC_PAGER=/bin/vi perldoc -m CGI

    works on my system (Cygwin32).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://115605]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2022-12-05 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?