Hack #3. Browse Perl Docs Online
Host your own HTML documentation.
perldoc is a fine way to view the
documentation for Perl and all your installed modules and to output them in the file format of your choice ("Put Perldoc to Work" [Hack #2]). perldoc's little brother, podwebserver, is an even handier way to browse documentation—and bookmark it, and search it, and sometimes even hardcopy it, all through whatever web browser you're using this week.
The Hack
podwebserver provides basically perldoc-as-HTML over HTTP. Sure, you could always just browse the documentation at http://search.cpan.org/—but using podwebserver means that you'll be seeing the documentation for exactly your system's Perl version and module versions.
podwebserver's HTML is compatible with fancy browsers as well as with more lightweight tools such as lynx, elinks, or even the w3m browser in Emacs. In fact, there have been persistent rumors of some users adventurously accessing podwebserver via cell phones, or even using something called "the Micro-Soft Internet Explorer." O'Reilly Media, Inc. can neither confirm nor deny these rumors.
If podwebserver isn't on your system, install the Pod::Webserver module from CPAN.
Running the Hack
To run podwebserver, just start it from the command line. You don't need root access:
$ podwebserver
Then start a web browser and browse to http://localhost:8020/. You'll see the index of the installed documentation (Figure 1-2).
Figure 1-2. An index of your Perl documentation
If you don't ...