Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

statico (5018)

AOL IM: eisforian (Add Buddy, Send Message)


Co-author of Perl Testing: A Developer's Notebook []

Journal of statico (5018)

Tuesday February 01, 2005
01:30 AM

nautilus and POD documents

[ #22962 ]

I wanted a one click solution to viewing the POD of perl scripts or
modules with Nautilus The solution: make sure Pod::Html is installed,
and copy the following script to ~/.gnome2/nautilus-scripts/podview:

    for i in $@; do
        pod2html --infile=$i --outfile=$t \
        mozilla-firefox -remote "openURL(file://$t,new-window)"
        ( sleep 2 && rm $t ) &

You may have to open up the nautilus-scripts directory and refresh.
Afterward, right-clicking on a document shows a "Scripts" submenu, which
contains a "podview" item. And, my stylesheet is pretty.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.