Monday, December 10, 2012

RCS and POD

I've recently starting trying to use POD for documenting more.  I love RCS so combining the two not only made sense but I found they compliment each other nicely.  I like that you can generate a man page or HTML from POD and you can use RCS variables to fill out part of the POD.  Here's my new file slurping template incorporating RCS and POD.


#!/usr/local/bin/perl -w

=pod

=head1 NAME 

$Id$

=head1 VERSION

$Revision$

=head1 DESCRIPTION

$Header$

=head1 REVISIONS

$Log$

=cut

$in = shift;
open(IN,"<$in") or die "Cannot open $in: $!\n";
while(){
 # meow
 print $_;
} 

1 comment:

  1. Thanks for providing this informative information. it is very useful you may also refer- http://www.s4techno.com/blog/category/perl/

    ReplyDelete