Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

  1. package ActivePerl::DocTools;
  2. use strict;
  3. use ActivePerl::DocTools::TOC::HTML;
  4. use ActivePerl::DocTools::TOC::RDF;
  5. our $VERSION = 0.04;
  6. our $dirbase = $ActivePerl::DocTools::TOC::dirbase;
  7. sub WriteTOC {
  8. my $fh;
  9. unless (open $fh, '>', "$dirbase/perltoc.html") {
  10. warn "Unable to open $dirbase/perltoc.html for writing: $!\n";
  11. return undef;
  12. }
  13. my $html_toc = ActivePerl::DocTools::TOC::HTML->new();
  14. print $fh $html_toc->TOC();
  15. }
  16. sub WriteRDF {
  17. my $rdf_toc = ActivePerl::DocTools::TOC::RDF->new();
  18. print $rdf_toc->TOC();
  19. }
  20. 1;
  21. __END__
  22. =head1 NAME
  23. ActivePerl::DocTools - Perl extension for Documentation TOC Generation
  24. =head1 SYNOPSIS
  25. use ActivePerl::DocTools;
  26. ActivePerl::DocTools::WriteTOC();
  27. =head1 DESCRIPTION
  28. Generates the TOC for Perl html docs. Currently used by PPM.
  29. Much of the code that used to be in this module has been moved
  30. out into the ActivePerl::DocTools::TOC packages. However, the
  31. ActivePerl::DocTools::WriteTOC() function has been preserved for
  32. compatibility with PPM.
  33. =head2 EXPORTS
  34. Nothing.
  35. =head1 AUTHOR
  36. David Sparks, DaveS@ActiveState.com
  37. Neil Kandalgaonkar, NeilK@ActiveState.com
  38. =head1 SEE ALSO
  39. The amazing L<PPM>.
  40. L<ActivePerl::DocTools::TOC>
  41. =cut