For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > April 2004 > printing pod









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author printing pod
Green Bob

2004-04-23, 5:37 pm

I have started using pod to document things like revision history, usage and
help info within my programs. I need to keep everything self contained
within one script so I can easily distribute the utilities...no read.me's.



I would like to be able to print pod sections to the screen, like have an
option to print out my revision history. I'm sure there must be an easy way
to handle this....but how?



Any help would be greatly appreciated.






Wc -Sx- Jones

2004-04-23, 5:37 pm

Green_Bob@emc.com wrote:
> I would like to be able to print pod sections to the screen, like have an
> option to print out my revision history. I'm sure there must be an easy way
> to handle this....but how?


I use DocSet and related Template Toolkit items...

That way the pod is browserable with the WWW.

--
_Sx_ http://youve-reached-the.endoftheinternet.org/
________________________________________
_________________________
perl -MMIME::Base64 -e 'print
decode_base64(" SnVzdCBvbmUgbW9yZSBQb3N0Zml4IDIuMnggU25h
cHNob3QgRmlsdGVyLCBwbGVhc2UK");'
Bob Showalter

2004-04-23, 6:32 pm

Green_Bob@emc.com wrote:
> I would like to be able to print pod sections to the screen, like
> have an option to print out my revision history. I'm sure there must
> be an easy way to handle this....but how?


The Pod::Usage module comes close to doing what you want; perhaps you can
adapt it to your purposes?
Wc -Sx- Jones

2004-04-23, 6:33 pm

Green_Bob@emc.com wrote:

> I would like to be able to print pod sections to the screen, like have an
> option to print out my revision history. I'm sure there must be an easy way
> to handle this....but how?


Hmm, the system you are on doesn't have perldoc ?


perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian

--
_Sx_ http://youve-reached-the.endoftheinternet.org/
________________________________________
_________________________
perl -MMIME::Base64 -e 'print
decode_base64(" SnVzdCBvbmUgbW9yZSBQb3N0Zml4IDIuMnggU25h
cHNob3QgRmlsdGVyLCBwbGVhc2UK");'
Charles K. Clarkson

2004-04-23, 6:33 pm

WC -Sx- Jones <WC-Sx-Jones@insecurity.org> wrote:
:
: Green_Bob@emc.com wrote:
:
: > I would like to be able to print pod sections to the
: screen, like have an
: > option to print out my revision history. I'm sure there
: must be an easy way
: > to handle this....but how?
:
: Hmm, the system you are on doesn't have perldoc ?
:
:
: perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian


I have perldoc! :)

And that doesn't work. :(

'grep' is not recognized as an internal or external command, operable
program or batch file.



Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com