Re: GetOpt Help

2003-06-01 Thread R. Joseph Newton
Kevin Pfeiffer wrote: > Hi Paul, > > sub get_class_types > > { > > my $self = shift; > > > > my $roots = []; > > my $unresolved = []; > > > > while (my ($class, $props) = each %{$self->{classes}}) > > { > > push @{$props->{parent} ? $unresolved : $roots}, $class; >

Re: GetOpt Help

2003-05-31 Thread Kevin Pfeiffer
Hi Paul, In article <[EMAIL PROTECTED]>, Paul Johnson wrote: [...] > I presume this is code that you have just made up on the spot rather than > something taken from a working project, but I couldn't say for sure what > the Classes hash was doing. Here's how I would code something similar for >

Re: GetOpt Help

2003-05-30 Thread R. Joseph Newton
Paul Johnson wrote: > > > sub get_root_classes { > > my $self = shift; > > > > my @root_classes; > > my @unresolved_classes; > > > > foreach (keys $self->{'Classes'}) { > > if ($_->{'parent'}) { > > push $_, @unresolved_classes; > > } else { > > push $_, @root_classes;

Re: GetOpt Help

2003-05-30 Thread Paul Johnson
R. Joseph Newton said: > Paul Kraus wrote: > >> Reading through the doc's it says that it is preferred that you write >> the -h help info using POD. How is this down? Any links on how to write >> pod or have a perl script display pod for built in help. I think someone's already mentioned Pod::Usa

Re: GetOpt Help

2003-05-30 Thread R. Joseph Newton
Paul Kraus wrote: > Reading through the doc's it says that it is preferred that you write > the -h help info using POD. How is this down? Any links on how to write > pod or have a perl script display pod for built in help. > > Do you guys really use POD to document your apps instead of #comments?

RE: GetOpt Help

2003-05-28 Thread NYIMI Jose (BMB)
perldoc perlpod or http://www.perldoc.com/perl5.8.0/pod/perlpod.html No i have never used pod to document my code, however many modules from cpan do. Never really wanted till now ;) For the help, i use the here doc as follow for instance : my $helptxt=< -of [-f] [-h] -f force blabla -h display t

Re: GetOpt Help

2003-05-27 Thread Tassilo von Parseval
On Tue, May 27, 2003 at 12:12:12PM -0400 Paul Kraus wrote: > Reading through the doc's it says that it is preferred that you write > the -h help info using POD. Which docs state that? > How is this down? Any links on how to write > pod or have a perl script display pod for built in help. Pod::U