Converting Getopt::Long into POD

IvorW combobulus at xemaps.com
Tue Jan 30 08:43:21 GMT 2007



> -----Original Message-----
> From: Andrew Black [mailto:andrew-li at black1.org.uk]
> Sent: 29 January 2007 15:53
> To: London.pm Perl M[ou]ngers
> Subject: Re: Converting Getopt::Long into POD
> 
> 
> IvorW wrote:
> 
> > 
> > I never use anything else but Getopt::Long these days.
> > Getopt::Long plays well with POD::Usage, which requires: 
> =head1 OPTIONS
> > 
> > I guess if you intersperse your POD with code, you could 
> place OPTIONS alongside the call to GetOptions
> 
> Do you have any examples of interspersed POD and options. 
> Reason I ask 
> is it is quite hard (IMHO) to get the format of these things 
> such that 
> it is readable whether you are looking for POD or for code.
> Personally I am prejudiced about inline POD but I am prepared to be 
> persuaded.

A Google code search gives some examples:

http://www.google.com/codesearch?hl=en&q=+lang:perl+GetOptions+%22head1+OPTIONS%22


More information about the london.pm mailing list