[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

re: [MacPerl] macperl-friendly (droplet?) pod to something?



westmj@esvax.dnet.dupont.com writes:
} Could someone post >MACPERL< source for a pod -to- something-useful
} converter?  I am guessing that it is a port from something 
} already available, and that some kind soul has already mac-ified it.

Any CPAN archive.  Start with <http://www.perl.com/perl/index.html>.

} 
} I am hoping for a droplet where I drop on "new_module.pm" and 
} I get the pod in text or html, either in a file like
} new_module.html, new_module.html, or in the MacPerl window.
} Hey, I am not fussy. ;-)
} 
} It is hard when they always say 'check the pod, dummy...'
} in that unix-centric way.
} 
} I searched the MacPerl archives via
} 
} http://www.its.unimelb.edu.au:801/hma/pub/macperl/
} and found a post by Paul Schinder 
} re: [MacPerl] MacPerl pod2html?
} Sun, 11 Feb 96 13:48:26 -0500
} 
} where he said he had done it, and would put in up
} in his area http://mors.gsfc.nasa.gov/MacPerl.html 
} but I do not find it.  If you do, please let me know.

And you won't find it.  I pulled it a long time ago when Bill
Middleton's pod2html in the CPAN archives got good enough to use under
MacPerl with trivial changes.  You have to set the paths
($installhtmldir and friends) and $sep near the top of pod2html .  And
if you're lazy like me, you actually want to do something with $MACify
(Bill has it defined in version 1.20 but it doesn't do anything) to
keep pod2html from generating names for the HTML files that are too
long. That's easy enough.  After line 166 (next unless length...) add
the following:

            if($MACify) {
                $Podnames{$savename} = substr($Podnames{$savename},-31);
            }

(I have version 1.20, but you should check CPAN to see if there's
something more current.  If there is, the line numbers might have
changed, and maybe $MACify is used now so you won't need to do this.)

That's it.  It will now generate good HTML with file names that are
unique as possible on a Mac.
  
} 
} Thank you, Mike West
} 
---
--------
Paul J. Schinder
NASA Goddard Space Flight Center,
Code 693, Greenbelt, MD 20771 USA
schinder@pjstoaster.pg.md.us