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).