home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 March / PCWorld_2003-03_cd.bin / Software / Topware / activeperl / ActivePerl / Perl / bin / perlbug.bat < prev    next >
Encoding:
DOS Batch File  |  2002-12-01  |  37.6 KB  |  1,210 lines

  1. @rem = '--*-Perl-*--
  2. @echo off
  3. if "%OS%" == "Windows_NT" goto WinNT
  4. perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
  5. goto endofperl
  6. :WinNT
  7. perl -x -S %0 %*
  8. if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
  9. if %errorlevel% == 9009 echo You do not have Perl in your PATH.
  10. if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul
  11. goto endofperl
  12. @rem ';
  13. #!perl
  14. #line 15
  15.     eval 'exec D:\p4\Apps\Gecko\MSI\data\ActivePerl\Perl\bin\perl.exe -S $0 ${1+"$@"}'
  16.     if $running_under_some_shell;
  17.  
  18. my $config_tag1 = 'v5.8.0 - Sun Dec  1 23:15:01 2002';
  19.  
  20. my $patchlevel_date = 1026657986;
  21. my $patch_tags = '+ACTIVEPERL_LOCAL_PATCHES_ENTRY ';
  22. my @patches = (
  23.     'ACTIVEPERL_LOCAL_PATCHES_ENTRY'
  24. );
  25.  
  26. use Config;
  27. use File::Spec;        # keep perlbug Perl 5.005 compatible
  28. use Getopt::Std;
  29. use strict;
  30.  
  31. sub paraprint;
  32.  
  33. BEGIN {
  34.     eval "use Mail::Send;";
  35.     $::HaveSend = ($@ eq "");
  36.     eval "use Mail::Util;";
  37.     $::HaveUtil = ($@ eq "");
  38. };
  39.  
  40. my $Version = "1.34";
  41.  
  42. # Changed in 1.06 to skip Mail::Send and Mail::Util if not available.
  43. # Changed in 1.07 to see more sendmail execs, and added pipe output.
  44. # Changed in 1.08 to use correct address for sendmail.
  45. # Changed in 1.09 to close the REP file before calling it up in the editor.
  46. #                 Also removed some old comments duplicated elsewhere.
  47. # Changed in 1.10 to run under VMS without Mail::Send; also fixed
  48. #                 temp filename generation.
  49. # Changed in 1.11 to clean up some text and removed Mail::Send deactivator.
  50. # Changed in 1.12 to check for editor errors, make save/send distinction
  51. #                 clearer and add $ENV{REPLYTO}.
  52. # Changed in 1.13 to hopefully make it more difficult to accidentally
  53. #                 send mail
  54. # Changed in 1.14 to make the prompts a little more clear on providing
  55. #                 helpful information. Also let file read fail gracefully.
  56. # Changed in 1.15 to add warnings to stop people using perlbug for non-bugs.
  57. #                 Also report selected environment variables.
  58. # Changed in 1.16 to include @INC, and allow user to re-edit if no changes.
  59. # Changed in 1.17 Win32 support added.  GSAR 97-04-12
  60. # Changed in 1.18 add '-ok' option for reporting build success. CFR 97-06-18
  61. # Changed in 1.19 '-ok' default not '-v'
  62. #                 add local patch information
  63. #                 warn on '-ok' if this is an old system; add '-okay'
  64. # Changed in 1.20 Added patchlevel.h reading and version/config checks
  65. # Changed in 1.21 Added '-nok' for reporting build failure DFD 98-05-05
  66. # Changed in 1.22 Heavy reformatting & minor bugfixes HVDS 98-05-10
  67. # Changed in 1.23 Restore -ok(ay): say 'success'; don't prompt
  68. # Changed in 1.24 Added '-F<file>' to save report HVDS 98-07-01
  69. # Changed in 1.25 Warn on failure to open save file. HVDS 98-07-12
  70. # Changed in 1.26 Don't require -t STDIN for -ok. HVDS 98-07-15
  71. # Changed in 1.27 Added Mac OS and File::Spec support CNANDOR 99-07-27
  72. # Changed in 1.28 Additional questions for Perlbugtron RFOLEY 20.03.2000
  73. # Changed in 1.29 Perlbug(tron): auto(-ok), short prompts RFOLEY 05-05-2000
  74. # Changed in 1.30 Added warnings on failure to open files MSTEVENS 13-07-2000
  75. # Changed in 1.31 Add checks on close().Fix my $var unless. TJENNESS 26-07-2000
  76. # Changed in 1.32 Use File::Spec->tmpdir TJENNESS 20-08-2000
  77. # Changed in 1.33 Don't require -t STDOUT for -ok.
  78. # Changed in 1.34 Added Message-Id RFOLEY 18-06-2002 
  79.  
  80. # TODO: - Allow the user to re-name the file on mail failure, and
  81. #       make sure failure (transmission-wise) of Mail::Send is
  82. #       accounted for.
  83. #       - Test -b option
  84.  
  85. my( $file, $usefile, $cc, $address, $perlbug, $testaddress, $filename, $messageid, $domain,
  86.     $subject, $from, $verbose, $ed, $outfile, $Is_MacOS, $category, $severity,
  87.     $fh, $me, $Is_MSWin32, $Is_Linux, $Is_VMS, $msg, $body, $andcc, %REP, $ok);
  88.  
  89. my $perl_version = $^V ? sprintf("v%vd", $^V) : $];
  90.  
  91. my $config_tag2 = "$perl_version - $Config{cf_time}";
  92.  
  93. Init();
  94.  
  95. if ($::opt_h) { Help(); exit; }
  96. if ($::opt_d) { Dump(*STDOUT); exit; }
  97. if (!-t STDIN && !($ok and not $::opt_n)) {
  98.     paraprint <<EOF;
  99. Please use perlbug interactively. If you want to
  100. include a file, you can use the -f switch.
  101. EOF
  102.     die "\n";
  103. }
  104.  
  105. Query();
  106. Edit() unless $usefile || ($ok and not $::opt_n);
  107. NowWhat();
  108. Send();
  109.  
  110. exit;
  111.  
  112. sub ask_for_alternatives { # (category|severity)
  113.     my $name = shift;
  114.     my %alts = (
  115.     'category' => {
  116.         'default' => 'core',
  117.         'ok'      => 'install',
  118.         'opts'    => [qw(core docs install library utilities)], # patch, notabug
  119.     },
  120.     'severity' => {
  121.         'default' => 'low',
  122.         'ok'      => 'none',
  123.         'opts'    => [qw(critical high medium low wishlist none)], # zero
  124.     },
  125.     );
  126.     die "Invalid alternative($name) requested\n" unless grep(/^$name$/, keys %alts);
  127.     my $alt = "";
  128.     if ($ok) {
  129.     $alt = $alts{$name}{'ok'};
  130.     } else {
  131.      my @alts = @{$alts{$name}{'opts'}};
  132.     paraprint <<EOF;
  133. Please pick a \u$name from the following:
  134.  
  135.     @alts
  136.  
  137. EOF
  138.     my $err = 0;
  139.     do {
  140.         if ($err++ > 5) {
  141.         die "Invalid $name: aborting.\n";
  142.         }
  143.         print "Please enter a \u$name [$alts{$name}{'default'}]: ";
  144.         $alt = <>;
  145.         chomp $alt;
  146.         if ($alt =~ /^\s*$/) {
  147.         $alt = $alts{$name}{'default'};
  148.         }
  149.     } while !((($alt) = grep(/^$alt/i, @alts)));
  150.     }
  151.     lc $alt;
  152. }
  153.  
  154. sub Init {
  155.     # -------- Setup --------
  156.  
  157.     $Is_MSWin32 = $^O eq 'MSWin32';
  158.     $Is_VMS = $^O eq 'VMS';
  159.     $Is_Linux = lc($^O) eq 'linux';
  160.     $Is_MacOS = $^O eq 'MacOS';
  161.  
  162.     @ARGV = split m/\s+/,
  163.         MacPerl::Ask('Provide command-line args here (-h for help):')
  164.         if $Is_MacOS && $MacPerl::Version =~ /App/;
  165.  
  166.     if (!getopts("Adhva:s:b:f:F:r:e:SCc:to:n:")) { Help(); exit; };
  167.  
  168.     # This comment is needed to notify metaconfig that we are
  169.     # using the $perladmin, $cf_by, and $cf_time definitions.
  170.  
  171.     # -------- Configuration ---------
  172.  
  173.     # perlbug address
  174.     $perlbug = 'perlbug@perl.org';
  175.  
  176.     # Test address
  177.     $testaddress = 'perlbug-test@perl.org';
  178.  
  179.     # Target address
  180.     $address = $::opt_a || ($::opt_t ? $testaddress : $perlbug);
  181.  
  182.     # Users address, used in message and in Reply-To header
  183.     $from = $::opt_r || "";
  184.  
  185.     # Include verbose configuration information
  186.     $verbose = $::opt_v || 0;
  187.  
  188.     # Subject of bug-report message
  189.     $subject = $::opt_s || "";
  190.  
  191.     # Send a file
  192.     $usefile = ($::opt_f || 0);
  193.  
  194.     # File to send as report
  195.     $file = $::opt_f || "";
  196.  
  197.     # File to output to
  198.     $outfile = $::opt_F || "";
  199.  
  200.     # Body of report
  201.     $body = $::opt_b || "";
  202.     
  203.     # Editor
  204.     $ed = $::opt_e || $ENV{VISUAL} || $ENV{EDITOR} || $ENV{EDIT}
  205.     || ($Is_VMS && "edit/tpu")
  206.     || ($Is_MSWin32 && "notepad")
  207.     || ($Is_MacOS && '')
  208.     || "vi";
  209.  
  210.     # Not OK - provide build failure template by finessing OK report
  211.     if ($::opt_n) {
  212.     if (substr($::opt_n, 0, 2) eq 'ok' )    {
  213.         $::opt_o = substr($::opt_n, 1);
  214.     } else {
  215.         Help();
  216.         exit();
  217.     }
  218.     }
  219.  
  220.     # OK - send "OK" report for build on this system
  221.     $ok = 0;
  222.     if ($::opt_o) {
  223.     if ($::opt_o eq 'k' or $::opt_o eq 'kay') {
  224.         my $age = time - $patchlevel_date;
  225.         if ($::opt_o eq 'k' and $age > 60 * 24 * 60 * 60 ) {
  226.         my $date = localtime $patchlevel_date;
  227.         print <<"EOF";
  228. "perlbug -ok" and "perlbug -nok" do not report on Perl versions which
  229. are more than 60 days old.  This Perl version was constructed on
  230. $date.  If you really want to report this, use
  231. "perlbug -okay" or "perlbug -nokay".
  232. EOF
  233.         exit();
  234.         }
  235.         # force these options
  236.         unless ($::opt_n) {
  237.         $::opt_S = 1; # don't prompt for send
  238.         $::opt_b = 1; # we have a body
  239.         $body = "Perl reported to build OK on this system.\n";
  240.         }
  241.         $::opt_C = 1; # don't send a copy to the local admin
  242.         $::opt_s = 1; # we have a subject line
  243.         $subject = ($::opt_n ? 'Not ' : '')
  244.             . "OK: perl $perl_version ${patch_tags}on"
  245.             ." $::Config{'archname'} $::Config{'osvers'} $subject";
  246.         $ok = 1;
  247.     } else {
  248.         Help();
  249.         exit();
  250.     }
  251.     }
  252.  
  253.     # Possible administrator addresses, in order of confidence
  254.     # (Note that cf_email is not mentioned to metaconfig, since
  255.     # we don't really want it. We'll just take it if we have to.)
  256.     #
  257.     # This has to be after the $ok stuff above because of the way
  258.     # that $::opt_C is forced.
  259.     $cc = $::opt_C ? "" : (
  260.     $::opt_c || $::Config{'perladmin'}
  261.     || $::Config{'cf_email'} || $::Config{'cf_by'}
  262.     );
  263.  
  264.     if ($::HaveUtil) {
  265.         $domain = Mail::Util::maildomain();
  266.     } elsif ($Is_MSWin32) {
  267.         $domain = $ENV{'USERDOMAIN'};
  268.     } else {
  269.         require Sys::Hostname;
  270.         $domain = Sys::Hostname::hostname();
  271.     }
  272.  
  273.     # Message-Id - rjsf
  274.     $messageid = "<$::Config{'version'}_${$}_".time."\@$domain>"; 
  275.  
  276.     # My username
  277.     $me = $Is_MSWin32 ? $ENV{'USERNAME'}
  278.         : $^O eq 'os2' ? $ENV{'USER'} || $ENV{'LOGNAME'}
  279.         : $Is_MacOS ? $ENV{'USER'}
  280.         : eval { getpwuid($<) };    # May be missing
  281.  
  282.     $from = $::Config{'cf_email'}
  283.        if !$from && $::Config{'cf_email'} && $::Config{'cf_by'} && $me &&
  284.                ($me eq $::Config{'cf_by'});
  285. } # sub Init
  286.  
  287. sub Query {
  288.     # Explain what perlbug is
  289.     unless ($ok) {
  290.     paraprint <<EOF;
  291. This program provides an easy way to create a message reporting a bug
  292. in perl, and e-mail it to $address.  It is *NOT* intended for
  293. sending test messages or simply verifying that perl works, *NOR* is it
  294. intended for reporting bugs in third-party perl modules.  It is *ONLY*
  295. a means of reporting verifiable problems with the core perl distribution,
  296. and any solutions to such problems, to the people who maintain perl.
  297.  
  298. If you're just looking for help with perl, try posting to the Usenet
  299. newsgroup comp.lang.perl.misc.  If you're looking for help with using
  300. perl with CGI, try posting to comp.infosystems.www.programming.cgi.
  301. EOF
  302.     }
  303.  
  304.     # Prompt for subject of message, if needed
  305.     
  306.     if (TrivialSubject($subject)) {
  307.     $subject = '';
  308.     }
  309.  
  310.     unless ($subject) {
  311.     paraprint <<EOF;
  312. First of all, please provide a subject for the
  313. message. It should be a concise description of
  314. the bug or problem. "perl bug" or "perl problem"
  315. is not a concise description.
  316. EOF
  317.  
  318.     my $err = 0;
  319.     do {
  320.         print "Subject: ";
  321.         $subject = <>;
  322.         chomp $subject;
  323.         if ($err++ == 5) {
  324.         die "Aborting.\n";
  325.         }
  326.     } while (TrivialSubject($subject));
  327.     }
  328.  
  329.     # Prompt for return address, if needed
  330.     unless ($from) {
  331.     # Try and guess return address
  332.     my $guess;
  333.  
  334.     $guess = $ENV{'REPLY-TO'} || $ENV{'REPLYTO'} || '';
  335.         if ($Is_MacOS) {
  336.             require Mac::InternetConfig;
  337.             $guess = $Mac::InternetConfig::InternetConfig{
  338.                 Mac::InternetConfig::kICEmail()
  339.             };
  340.         }
  341.  
  342.     unless ($guess) {
  343.         # move $domain to where we can use it elsewhere    
  344.         if ($domain) {
  345.         if ($Is_VMS && !$::Config{'d_socket'}) {
  346.             $guess = "$domain\:\:$me";
  347.         } else {
  348.             $guess = "$me\@$domain" if $domain;
  349.         }
  350.         }
  351.     }
  352.  
  353.     if ($guess) {
  354.         unless ($ok) {
  355.         paraprint <<EOF;
  356. Your e-mail address will be useful if you need to be contacted. If the
  357. default shown is not your full internet e-mail address, please correct it.
  358. EOF
  359.         }
  360.     } else {
  361.         paraprint <<EOF;
  362. So that you may be contacted if necessary, please enter
  363. your full internet e-mail address here.
  364. EOF
  365.     }
  366.  
  367.     if ($ok && $guess) {
  368.         # use it
  369.         $from = $guess;
  370.     } else {
  371.         # verify it
  372.         print "Your address [$guess]: ";
  373.         $from = <>;
  374.         chomp $from;
  375.         $from = $guess if $from eq '';
  376.     }
  377.     }
  378.  
  379.     if ($from eq $cc or $me eq $cc) {
  380.     # Try not to copy ourselves
  381.     $cc = "yourself";
  382.     }
  383.  
  384.     # Prompt for administrator address, unless an override was given
  385.     if( !$::opt_C and !$::opt_c ) {
  386.     paraprint <<EOF;
  387. A copy of this report can be sent to your local
  388. perl administrator. If the address is wrong, please
  389. correct it, or enter 'none' or 'yourself' to not send
  390. a copy.
  391. EOF
  392.     print "Local perl administrator [$cc]: ";
  393.     my $entry = scalar <>;
  394.     chomp $entry;
  395.  
  396.     if ($entry ne "") {
  397.         $cc = $entry;
  398.         $cc = '' if $me eq $cc;
  399.     }
  400.     }
  401.  
  402.     $cc = '' if $cc =~ /^(none|yourself|me|myself|ourselves)$/i;
  403.     $andcc = " and $cc" if $cc;
  404.  
  405.     # Prompt for editor, if no override is given
  406. editor:
  407.     unless ($::opt_e || $::opt_f || $::opt_b) {
  408.     paraprint <<EOF;
  409. Now you need to supply the bug report. Try to make
  410. the report concise but descriptive. Include any
  411. relevant detail. If you are reporting something
  412. that does not work as you think it should, please
  413. try to include example of both the actual
  414. result, and what you expected.
  415.  
  416. Some information about your local
  417. perl configuration will automatically be included
  418. at the end of the report. If you are using any
  419. unusual version of perl, please try and confirm
  420. exactly which versions are relevant.
  421.  
  422. You will probably want to use an editor to enter
  423. the report. If "$ed" is the editor you want
  424. to use, then just press Enter, otherwise type in
  425. the name of the editor you would like to use.
  426.  
  427. If you would like to use a prepared file, type
  428. "file", and you will be asked for the filename.
  429. EOF
  430.     print "Editor [$ed]: ";
  431.     my $entry =scalar <>;
  432.     chomp $entry;
  433.  
  434.     $usefile = 0;
  435.     if ($entry eq "file") {
  436.         $usefile = 1;
  437.     } elsif ($entry ne "") {
  438.         $ed = $entry;
  439.     }
  440.     }
  441.  
  442.     # Prompt for category of bug
  443.     $category ||= ask_for_alternatives('category');
  444.  
  445.     # Prompt for severity of bug
  446.     $severity ||= ask_for_alternatives('severity');
  447.  
  448.     # Generate scratch file to edit report in
  449.     $filename = filename();
  450.  
  451.     # Prompt for file to read report from, if needed
  452.     if ($usefile and !$file) {
  453. filename:
  454.     paraprint <<EOF;
  455. What is the name of the file that contains your report?
  456. EOF
  457.     print "Filename: ";
  458.     my $entry = scalar <>;
  459.     chomp $entry;
  460.  
  461.     if ($entry eq "") {
  462.         paraprint <<EOF;
  463. No filename? I'll let you go back and choose an editor again.
  464. EOF
  465.         goto editor;
  466.     }
  467.  
  468.     unless (-f $entry and -r $entry) {
  469.         paraprint <<EOF;
  470. I'm sorry, but I can't read from `$entry'. Maybe you mistyped the name of
  471. the file? If you don't want to send a file, just enter a blank line and you
  472. can get back to the editor selection.
  473. EOF
  474.         goto filename;
  475.     }
  476.     $file = $entry;
  477.     }
  478.  
  479.     # Generate report
  480.     open(REP,">$filename") or die "Unable to create report file `$filename': $!\n";
  481.     my $reptype = !$ok ? "bug" : $::opt_n ? "build failure" : "success";
  482.  
  483.     print REP <<EOF;
  484. This is a $reptype report for perl from $from,
  485. generated with the help of perlbug $Version running under perl $perl_version.
  486.  
  487. EOF
  488.  
  489.     if ($body) {
  490.     print REP $body;
  491.     } elsif ($usefile) {
  492.     open(F, "<$file")
  493.         or die "Unable to read report file from `$file': $!\n";
  494.     while (<F>) {
  495.         print REP $_
  496.     }
  497.     close(F) or die "Error closing `$file': $!";
  498.     } else {
  499.     print REP <<EOF;
  500.  
  501. -----------------------------------------------------------------
  502. [Please enter your report here]
  503.  
  504.  
  505.  
  506. [Please do not change anything below this line]
  507. -----------------------------------------------------------------
  508. EOF
  509.     }
  510.     Dump(*REP);
  511.     close(REP) or die "Error closing report file: $!";
  512.  
  513.     # read in the report template once so that
  514.     # we can track whether the user does any editing.
  515.     # yes, *all* whitespace is ignored.
  516.     open(REP, "<$filename") or die "Unable to open report file `$filename': $!\n";
  517.     while (<REP>) {
  518.     s/\s+//g;
  519.     $REP{$_}++;
  520.     }
  521.     close(REP) or die "Error closing report file `$filename': $!";
  522. } # sub Query
  523.  
  524. sub Dump {
  525.     local(*OUT) = @_;
  526.  
  527.     print OUT <<EFF;
  528. ---
  529. Flags:
  530.     category=$category
  531.     severity=$severity
  532. EFF
  533.     if ($::opt_A) {
  534.     print OUT <<EFF;
  535.     ack=no
  536. EFF
  537.     }
  538.     print OUT <<EFF;
  539. ---
  540. EFF
  541.     print OUT "This perlbug was built using Perl $config_tag1\n",
  542.         "It is being executed now by  Perl $config_tag2.\n\n"
  543.     if $config_tag2 ne $config_tag1;
  544.  
  545.     print OUT <<EOF;
  546. Site configuration information for perl $perl_version:
  547.  
  548. EOF
  549.     if ($::Config{cf_by} and $::Config{cf_time}) {
  550.     print OUT "Configured by $::Config{cf_by} at $::Config{cf_time}.\n\n";
  551.     }
  552.     print OUT Config::myconfig;
  553.  
  554.     if (@patches) {
  555.     print OUT join "\n    ", "Locally applied patches:", @patches;
  556.     print OUT "\n";
  557.     };
  558.  
  559.     print OUT <<EOF;
  560.  
  561. ---
  562. \@INC for perl $perl_version:
  563. EOF
  564.     for my $i (@INC) {
  565.     print OUT "    $i\n";
  566.     }
  567.  
  568.     print OUT <<EOF;
  569.  
  570. ---
  571. Environment for perl $perl_version:
  572. EOF
  573.     my @env =
  574.         qw(PATH LD_LIBRARY_PATH LANG PERL_BADLANG SHELL HOME LOGDIR LANGUAGE);
  575.     push @env, $Config{ldlibpthname} if $Config{ldlibpthname} ne '';
  576.     push @env, grep /^(?:PERL|LC_|LANG|CYGWIN)/, keys %ENV;
  577.     my %env;
  578.     @env{@env} = @env;
  579.     for my $env (sort keys %env) {
  580.     print OUT "    $env",
  581.         exists $ENV{$env} ? "=$ENV{$env}" : ' (unset)',
  582.         "\n";
  583.     }
  584.     if ($verbose) {
  585.     print OUT "\nComplete configuration data for perl $perl_version:\n\n";
  586.     my $value;
  587.     foreach (sort keys %::Config) {
  588.         $value = $::Config{$_};
  589.         $value =~ s/'/\\'/g;
  590.         print OUT "$_='$value'\n";
  591.     }
  592.     }
  593. } # sub Dump
  594.  
  595. sub Edit {
  596.     # Edit the report
  597.     if ($usefile || $body) {
  598.     paraprint <<EOF;
  599. Please make sure that the name of the editor you want to use is correct.
  600. EOF
  601.     print "Editor [$ed]: ";
  602.     my $entry =scalar <>;
  603.     chomp $entry;
  604.     $ed = $entry unless $entry eq '';
  605.     }
  606.  
  607. tryagain:
  608.     my $sts;
  609.     $sts = system("$ed $filename") unless $Is_MacOS;
  610.     if ($Is_MacOS) {
  611.         require ExtUtils::MakeMaker;
  612.         ExtUtils::MM_MacOS::launch_file($filename);
  613.         paraprint <<EOF;
  614. Press Enter when done.
  615. EOF
  616.         scalar <>;
  617.     }
  618.     if ($sts) {
  619.     paraprint <<EOF;
  620. The editor you chose (`$ed') could apparently not be run!
  621. Did you mistype the name of your editor? If so, please
  622. correct it here, otherwise just press Enter.
  623. EOF
  624.     print "Editor [$ed]: ";
  625.     my $entry =scalar <>;
  626.     chomp $entry;
  627.  
  628.     if ($entry ne "") {
  629.         $ed = $entry;
  630.         goto tryagain;
  631.     } else {
  632.         paraprint <<EOF;
  633. You may want to save your report to a file, so you can edit and mail it
  634. yourself.
  635. EOF
  636.     }
  637.     }
  638.  
  639.     return if ($ok and not $::opt_n) || $body;
  640.     # Check that we have a report that has some, eh, report in it.
  641.     my $unseen = 0;
  642.  
  643.     open(REP, "<$filename") or die "Couldn't open `$filename': $!\n";
  644.     # a strange way to check whether any significant editing
  645.     # have been done: check whether any new non-empty lines
  646.     # have been added. Yes, the below code ignores *any* space
  647.     # in *any* line.
  648.     while (<REP>) {
  649.     s/\s+//g;
  650.     $unseen++ if $_ ne '' and not exists $REP{$_};
  651.     }
  652.  
  653.     while ($unseen == 0) {
  654.     paraprint <<EOF;
  655. I am sorry but it looks like you did not report anything.
  656. EOF
  657.     print "Action (Retry Edit/Cancel) ";
  658.     my ($action) = scalar(<>);
  659.     if ($action =~ /^[re]/i) { # <R>etry <E>dit
  660.         goto tryagain;
  661.     } elsif ($action =~ /^[cq]/i) { # <C>ancel, <Q>uit
  662.         Cancel();
  663.     }
  664.     }
  665. } # sub Edit
  666.  
  667. sub Cancel {
  668.     1 while unlink($filename);  # remove all versions under VMS
  669.     print "\nCancelling.\n";
  670.     exit(0);
  671. }
  672.  
  673. sub NowWhat {
  674.     # Report is done, prompt for further action
  675.     if( !$::opt_S ) {
  676.     while(1) {
  677.         paraprint <<EOF;
  678. Now that you have completed your report, would you like to send
  679. the message to $address$andcc, display the message on
  680. the screen, re-edit it, display/change the subject,
  681. or cancel without sending anything?
  682. You may also save the message as a file to mail at another time.
  683. EOF
  684.       retry:
  685.         print "Action (Send/Display/Edit/Subject/Save to File): ";
  686.         my $action = scalar <>;
  687.         chomp $action;
  688.  
  689.         if ($action =~ /^(f|sa)/i) { # <F>ile/<Sa>ve
  690.         my $file_save = $outfile || "perlbug.rep";
  691.         print "\n\nName of file to save message in [$file_save]: ";
  692.         my $file = scalar <>;
  693.         chomp $file;
  694.         $file = $file_save if $file eq "";
  695.  
  696.         unless (open(FILE, ">$file")) {
  697.             print "\nError opening $file: $!\n\n";
  698.             goto retry;
  699.         }
  700.         open(REP, "<$filename") or die "Couldn't open file `$filename': $!\n";
  701.         print FILE "To: $address\nSubject: $subject\n";
  702.         print FILE "Cc: $cc\n" if $cc;
  703.         print FILE "Reply-To: $from\n" if $from;
  704.         print FILE "Message-Id: $messageid\n" if $messageid;
  705.         print FILE "\n";
  706.         while (<REP>) { print FILE }
  707.         close(REP) or die "Error closing report file `$filename': $!";
  708.         close(FILE) or die "Error closing $file: $!";
  709.  
  710.         print "\nMessage saved in `$file'.\n";
  711.         exit;
  712.         } elsif ($action =~ /^(d|l|sh)/i ) { # <D>isplay, <L>ist, <Sh>ow
  713.         # Display the message
  714.         open(REP, "<$filename") or die "Couldn't open file `$filename': $!\n";
  715.         while (<REP>) { print $_ }
  716.         close(REP) or die "Error closing report file `$filename': $!";
  717.         } elsif ($action =~ /^su/i) { # <Su>bject
  718.         print "Subject: $subject\n";
  719.         print "If the above subject is fine, just press Enter.\n";
  720.         print "If not, type in the new subject.\n";
  721.         print "Subject: ";
  722.         my $reply = scalar <STDIN>;
  723.         chomp $reply;
  724.         if ($reply ne '') {
  725.             unless (TrivialSubject($reply)) {
  726.             $subject = $reply;
  727.             print "Subject: $subject\n";
  728.             }
  729.         }
  730.         } elsif ($action =~ /^se/i) { # <S>end
  731.         # Send the message
  732.         print "Are you certain you want to send this message?\n"
  733.             . 'Please type "yes" if you are: ';
  734.         my $reply = scalar <STDIN>;
  735.         chomp $reply;
  736.         if ($reply eq "yes") {
  737.             last;
  738.         } else {
  739.             paraprint <<EOF;
  740. That wasn't a clear "yes", so I won't send your message. If you are sure
  741. your message should be sent, type in "yes" (without the quotes) at the
  742. confirmation prompt.
  743. EOF
  744.         }
  745.         } elsif ($action =~ /^[er]/i) { # <E>dit, <R>e-edit
  746.         # edit the message
  747.         Edit();
  748.         } elsif ($action =~ /^[qc]/i) { # <C>ancel, <Q>uit
  749.         Cancel();
  750.         } elsif ($action =~ /^s/i) {
  751.         paraprint <<EOF;
  752. I'm sorry, but I didn't understand that. Please type "send" or "save".
  753. EOF
  754.         }
  755.     }
  756.     }
  757. } # sub NowWhat
  758.  
  759. sub TrivialSubject {
  760.     my $subject = shift;
  761.     if ($subject =~
  762.     /^(y(es)?|no?|help|perl( (bug|problem))?|bug|problem)$/i ||
  763.     length($subject) < 4 ||
  764.     $subject !~ /\s/) {
  765.     print "\nThat doesn't look like a good subject.  Please be more verbose.\n\n";
  766.         return 1;
  767.     } else {
  768.     return 0;
  769.     }
  770. }
  771.  
  772. sub Send {
  773.     # Message has been accepted for transmission -- Send the message
  774.     if ($outfile) {
  775.     open SENDMAIL, ">$outfile" or die "Couldn't open '$outfile': $!\n";
  776.     goto sendout;
  777.     }
  778.  
  779.     # on linux certain mail implementations won't accept the subject
  780.     # as "~s subject" and thus the Subject header will be corrupted
  781.     # so don't use Mail::Send to be safe
  782.     if ($::HaveSend && !$Is_Linux) {
  783.     $msg = new Mail::Send Subject => $subject, To => $address;
  784.     $msg->cc($cc) if $cc;
  785.     $msg->add("Reply-To",$from) if $from;
  786.  
  787.     $fh = $msg->open;
  788.     open(REP, "<$filename") or die "Couldn't open `$filename': $!\n";
  789.     while (<REP>) { print $fh $_ }
  790.     close(REP) or die "Error closing $filename: $!";
  791.     $fh->close;
  792.  
  793.     print "\nMessage sent.\n";
  794.     } elsif ($Is_VMS) {
  795.     if ( ($address =~ /@/ and $address !~ /^\w+%"/) or
  796.          ($cc      =~ /@/ and $cc      !~ /^\w+%"/) ) {
  797.         my $prefix;
  798.         foreach (qw[ IN MX SMTP UCX PONY WINS ], '') {
  799.         $prefix = "$_%", last if $ENV{"MAIL\$PROTOCOL_$_"};
  800.         }
  801.         $address = qq[${prefix}"$address"] unless $address =~ /^\w+%"/;
  802.         $cc = qq[${prefix}"$cc"] unless !$cc || $cc =~ /^\w+%"/;
  803.     }
  804.     $subject =~ s/"/""/g; $address =~ s/"/""/g; $cc =~ s/"/""/g;
  805.     my $sts = system(qq[mail/Subject="$subject" $filename. "$address","$cc"]);
  806.     if ($sts) {
  807.         die <<EOF;
  808. Can't spawn off mail
  809.     (leaving bug report in $filename): $sts
  810. EOF
  811.     }
  812.     } else {
  813.     my $sendmail = "";
  814.     for (qw(/usr/lib/sendmail /usr/sbin/sendmail /usr/ucblib/sendmail)) {
  815.         $sendmail = $_, last if -e $_;
  816.     }
  817.     if ($^O eq 'os2' and $sendmail eq "") {
  818.         my $path = $ENV{PATH};
  819.         $path =~ s:\\:/: ;
  820.         my @path = split /$Config{'path_sep'}/, $path;
  821.         for (@path) {
  822.         $sendmail = "$_/sendmail", last if -e "$_/sendmail";
  823.         $sendmail = "$_/sendmail.exe", last if -e "$_/sendmail.exe";
  824.         }
  825.     }
  826.  
  827.     paraprint(<<"EOF"), die "\n" if $sendmail eq "";
  828. I am terribly sorry, but I cannot find sendmail, or a close equivalent, and
  829. the perl package Mail::Send has not been installed, so I can't send your bug
  830. report. We apologize for the inconvenience.
  831.  
  832. So you may attempt to find some way of sending your message, it has
  833. been left in the file `$filename'.
  834. EOF
  835.     open(SENDMAIL, "|$sendmail -t -oi") || die "'|$sendmail -t -oi' failed: $!";
  836. sendout:
  837.     print SENDMAIL "To: $address\n";
  838.     print SENDMAIL "Subject: $subject\n";
  839.     print SENDMAIL "Cc: $cc\n" if $cc;
  840.     print SENDMAIL "Reply-To: $from\n" if $from;
  841.     print SENDMAIL "Message-Id: $messageid\n" if $messageid;
  842.     print SENDMAIL "\n\n";
  843.     open(REP, "<$filename") or die "Couldn't open `$filename': $!\n";
  844.     while (<REP>) { print SENDMAIL $_ }
  845.     close(REP) or die "Error closing $filename: $!";
  846.  
  847.     if (close(SENDMAIL)) {
  848.         printf "\nMessage %s.\n", $outfile ? "saved" : "sent";
  849.     } else {
  850.         warn "\nSendmail returned status '", $? >> 8, "'\n";
  851.     }
  852.     }
  853.     1 while unlink($filename);  # remove all versions under VMS
  854. } # sub Send
  855.  
  856. sub Help {
  857.     print <<EOF;
  858.  
  859. A program to help generate bug reports about perl5, and mail them.
  860. It is designed to be used interactively. Normally no arguments will
  861. be needed.
  862.  
  863. Usage:
  864. $0  [-v] [-a address] [-s subject] [-b body | -f inpufile ] [ -F outputfile ]
  865.     [-r returnaddress] [-e editor] [-c adminaddress | -C] [-S] [-t] [-h]
  866. $0  [-v] [-r returnaddress] [-A] [-ok | -okay | -nok | -nokay]
  867.  
  868. Simplest usage:  run "$0", and follow the prompts.
  869.  
  870. Options:
  871.  
  872.   -v    Include Verbose configuration data in the report
  873.   -f    File containing the body of the report. Use this to
  874.         quickly send a prepared message.
  875.   -F    File to output the resulting mail message to, instead of mailing.
  876.   -S    Send without asking for confirmation.
  877.   -a    Address to send the report to. Defaults to `$address'.
  878.   -c    Address to send copy of report to. Defaults to `$cc'.
  879.   -C    Don't send copy to administrator.
  880.   -s    Subject to include with the message. You will be prompted
  881.         if you don't supply one on the command line.
  882.   -b    Body of the report. If not included on the command line, or
  883.         in a file with -f, you will get a chance to edit the message.
  884.   -r    Your return address. The program will ask you to confirm
  885.         this if you don't give it here.
  886.   -e    Editor to use.
  887.   -t    Test mode. The target address defaults to `$testaddress'.
  888.   -d    Data mode.  This prints out your configuration data, without mailing
  889.         anything. You can use this with -v to get more complete data.
  890.   -A    Don't send a bug received acknowledgement to the return address.
  891.   -ok   Report successful build on this system to perl porters
  892.         (use alone or with -v). Only use -ok if *everything* was ok:
  893.         if there were *any* problems at all, use -nok.
  894.   -okay As -ok but allow report from old builds.
  895.   -nok  Report unsuccessful build on this system to perl porters
  896.         (use alone or with -v). You must describe what went wrong
  897.         in the body of the report which you will be asked to edit.
  898.   -nokay As -nok but allow report from old builds.
  899.   -h    Print this help message.
  900.  
  901. EOF
  902. }
  903.  
  904. sub filename {
  905.     my $dir = File::Spec->tmpdir();
  906.     $filename = "bugrep0$$";
  907.     $filename++ while -e File::Spec->catfile($dir, $filename);
  908.     $filename = File::Spec->catfile($dir, $filename);
  909. }
  910.  
  911. sub paraprint {
  912.     my @paragraphs = split /\n{2,}/, "@_";
  913.     print "\n\n";
  914.     for (@paragraphs) {   # implicit local $_
  915.     s/(\S)\s*\n/$1 /g;
  916.     write;
  917.     print "\n";
  918.     }
  919. }
  920.  
  921. format STDOUT =
  922. ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~
  923. $_
  924. .
  925.  
  926. __END__
  927.  
  928. =head1 NAME
  929.  
  930. perlbug - how to submit bug reports on Perl
  931.  
  932. =head1 SYNOPSIS
  933.  
  934. B<perlbug> S<[ B<-v> ]> S<[ B<-a> I<address> ]> S<[ B<-s> I<subject> ]>
  935. S<[ B<-b> I<body> | B<-f> I<inputfile> ]> S<[ B<-F> I<outputfile> ]>
  936. S<[ B<-r> I<returnaddress> ]>
  937. S<[ B<-e> I<editor> ]> S<[ B<-c> I<adminaddress> | B<-C> ]>
  938. S<[ B<-S> ]> S<[ B<-t> ]>  S<[ B<-d> ]>  S<[ B<-A> ]>  S<[ B<-h> ]>
  939.  
  940. B<perlbug> S<[ B<-v> ]> S<[ B<-r> I<returnaddress> ]>
  941.  S<[ B<-A> ]> S<[ B<-ok> | B<-okay> | B<-nok> | B<-nokay> ]>
  942.  
  943. =head1 DESCRIPTION
  944.  
  945. A program to help generate bug reports about perl or the modules that
  946. come with it, and mail them.
  947.  
  948. If you have found a bug with a non-standard port (one that was not part
  949. of the I<standard distribution>), a binary distribution, or a
  950. non-standard module (such as Tk, CGI, etc), then please see the
  951. documentation that came with that distribution to determine the correct
  952. place to report bugs.
  953.  
  954. C<perlbug> is designed to be used interactively. Normally no arguments
  955. will be needed.  Simply run it, and follow the prompts.
  956.  
  957. If you are unable to run B<perlbug> (most likely because you don't have
  958. a working setup to send mail that perlbug recognizes), you may have to
  959. compose your own report, and email it to B<perlbug@perl.org>.  You might
  960. find the B<-d> option useful to get summary information in that case.
  961.  
  962. In any case, when reporting a bug, please make sure you have run through
  963. this checklist:
  964.  
  965. =over 4
  966.  
  967. =item What version of Perl you are running?
  968.  
  969. Type C<perl -v> at the command line to find out.
  970.  
  971. =item Are you running the latest released version of perl?
  972.  
  973. Look at http://www.perl.com/ to find out.  If it is not the latest
  974. released version, get that one and see whether your bug has been
  975. fixed.  Note that bug reports about old versions of Perl, especially
  976. those prior to the 5.0 release, are likely to fall upon deaf ears.
  977. You are on your own if you continue to use perl1 .. perl4.
  978.  
  979. =item Are you sure what you have is a bug?
  980.  
  981. A significant number of the bug reports we get turn out to be documented
  982. features in Perl.  Make sure the behavior you are witnessing doesn't fall
  983. under that category, by glancing through the documentation that comes
  984. with Perl (we'll admit this is no mean task, given the sheer volume of
  985. it all, but at least have a look at the sections that I<seem> relevant).
  986.  
  987. Be aware of the familiar traps that perl programmers of various hues
  988. fall into.  See L<perltrap>.
  989.  
  990. Check in L<perldiag> to see what any Perl error message(s) mean.
  991. If message isn't in perldiag, it probably isn't generated by Perl.
  992. Consult your operating system documentation instead.
  993.  
  994. If you are on a non-UNIX platform check also L<perlport>, as some
  995. features may be unimplemented or work differently.
  996.  
  997. Try to study the problem under the Perl debugger, if necessary.
  998. See L<perldebug>.
  999.  
  1000. =item Do you have a proper test case?
  1001.  
  1002. The easier it is to reproduce your bug, the more likely it will be
  1003. fixed, because if no one can duplicate the problem, no one can fix it.
  1004. A good test case has most of these attributes: fewest possible number
  1005. of lines; few dependencies on external commands, modules, or
  1006. libraries; runs on most platforms unimpeded; and is self-documenting.
  1007.  
  1008. A good test case is almost always a good candidate to be on the perl
  1009. test suite.  If you have the time, consider making your test case so
  1010. that it will readily fit into the standard test suite.
  1011.  
  1012. Remember also to include the B<exact> error messages, if any.
  1013. "Perl complained something" is not an exact error message.
  1014.  
  1015. If you get a core dump (or equivalent), you may use a debugger
  1016. (B<dbx>, B<gdb>, etc) to produce a stack trace to include in the bug
  1017. report.  NOTE: unless your Perl has been compiled with debug info
  1018. (often B<-g>), the stack trace is likely to be somewhat hard to use
  1019. because it will most probably contain only the function names and not
  1020. their arguments.  If possible, recompile your Perl with debug info and
  1021. reproduce the dump and the stack trace.
  1022.  
  1023. =item Can you describe the bug in plain English?
  1024.  
  1025. The easier it is to understand a reproducible bug, the more likely it
  1026. will be fixed.  Anything you can provide by way of insight into the
  1027. problem helps a great deal.  In other words, try to analyze the
  1028. problem (to the extent you can) and report your discoveries.
  1029.  
  1030. =item Can you fix the bug yourself?
  1031.  
  1032. A bug report which I<includes a patch to fix it> will almost
  1033. definitely be fixed.  Use the C<diff> program to generate your patches
  1034. (C<diff> is being maintained by the GNU folks as part of the B<diffutils>
  1035. package, so you should be able to get it from any of the GNU software
  1036. repositories).  If you do submit a patch, the cool-dude counter at
  1037. perlbug@perl.org will register you as a savior of the world.  Your
  1038. patch may be returned with requests for changes, or requests for more
  1039. detailed explanations about your fix.
  1040.  
  1041. Here are some clues for creating quality patches: Use the B<-c> or
  1042. B<-u> switches to the diff program (to create a so-called context or
  1043. unified diff).  Make sure the patch is not reversed (the first
  1044. argument to diff is typically the original file, the second argument
  1045. your changed file).  Make sure you test your patch by applying it with
  1046. the C<patch> program before you send it on its way.  Try to follow the
  1047. same style as the code you are trying to patch.  Make sure your patch
  1048. really does work (C<make test>, if the thing you're patching supports
  1049. it).
  1050.  
  1051. =item Can you use C<perlbug> to submit the report?
  1052.  
  1053. B<perlbug> will, amongst other things, ensure your report includes
  1054. crucial information about your version of perl.  If C<perlbug> is unable
  1055. to mail your report after you have typed it in, you may have to compose
  1056. the message yourself, add the output produced by C<perlbug -d> and email
  1057. it to B<perlbug@perl.org>.  If, for some reason, you cannot run
  1058. C<perlbug> at all on your system, be sure to include the entire output
  1059. produced by running C<perl -V> (note the uppercase V).
  1060.  
  1061. Whether you use C<perlbug> or send the email manually, please make
  1062. your Subject line informative.  "a bug" not informative.  Neither is
  1063. "perl crashes" nor "HELP!!!".  These don't help.
  1064. A compact description of what's wrong is fine.
  1065.  
  1066. =back
  1067.  
  1068. Having done your bit, please be prepared to wait, to be told the bug
  1069. is in your code, or even to get no reply at all.  The Perl maintainers
  1070. are busy folks, so if your problem is a small one or if it is difficult
  1071. to understand or already known, they may not respond with a personal reply.
  1072. If it is important to you that your bug be fixed, do monitor the
  1073. C<Changes> file in any development releases since the time you submitted
  1074. the bug, and encourage the maintainers with kind words (but never any
  1075. flames!).  Feel free to resend your bug report if the next released
  1076. version of perl comes out and your bug is still present.
  1077.  
  1078. =head1 OPTIONS
  1079.  
  1080. =over 8
  1081.  
  1082. =item B<-a>
  1083.  
  1084. Address to send the report to.  Defaults to B<perlbug@perl.org>.
  1085.  
  1086. =item B<-A>
  1087.  
  1088. Don't send a bug received acknowledgement to the reply address.
  1089. Generally it is only a sensible to use this option if you are a
  1090. perl maintainer actively watching perl porters for your message to
  1091. arrive.
  1092.  
  1093. =item B<-b>
  1094.  
  1095. Body of the report.  If not included on the command line, or
  1096. in a file with B<-f>, you will get a chance to edit the message.
  1097.  
  1098. =item B<-C>
  1099.  
  1100. Don't send copy to administrator.
  1101.  
  1102. =item B<-c>
  1103.  
  1104. Address to send copy of report to.  Defaults to the address of the
  1105. local perl administrator (recorded when perl was built).
  1106.  
  1107. =item B<-d>
  1108.  
  1109. Data mode (the default if you redirect or pipe output).  This prints out
  1110. your configuration data, without mailing anything.  You can use this
  1111. with B<-v> to get more complete data.
  1112.  
  1113. =item B<-e>
  1114.  
  1115. Editor to use.
  1116.  
  1117. =item B<-f>
  1118.  
  1119. File containing the body of the report.  Use this to quickly send a
  1120. prepared message.
  1121.  
  1122. =item B<-F>
  1123.  
  1124. File to output the results to instead of sending as an email. Useful
  1125. particularly when running perlbug on a machine with no direct internet
  1126. connection.
  1127.  
  1128. =item B<-h>
  1129.  
  1130. Prints a brief summary of the options.
  1131.  
  1132. =item B<-ok>
  1133.  
  1134. Report successful build on this system to perl porters. Forces B<-S>
  1135. and B<-C>. Forces and supplies values for B<-s> and B<-b>. Only
  1136. prompts for a return address if it cannot guess it (for use with
  1137. B<make>). Honors return address specified with B<-r>.  You can use this
  1138. with B<-v> to get more complete data.   Only makes a report if this
  1139. system is less than 60 days old.
  1140.  
  1141. =item B<-okay>
  1142.  
  1143. As B<-ok> except it will report on older systems.
  1144.  
  1145. =item B<-nok>
  1146.  
  1147. Report unsuccessful build on this system.  Forces B<-C>.  Forces and
  1148. supplies a value for B<-s>, then requires you to edit the report
  1149. and say what went wrong.  Alternatively, a prepared report may be
  1150. supplied using B<-f>.  Only prompts for a return address if it
  1151. cannot guess it (for use with B<make>). Honors return address
  1152. specified with B<-r>.  You can use this with B<-v> to get more
  1153. complete data.  Only makes a report if this system is less than 60
  1154. days old.
  1155.  
  1156. =item B<-nokay>
  1157.  
  1158. As B<-nok> except it will report on older systems.
  1159.  
  1160. =item B<-r>
  1161.  
  1162. Your return address.  The program will ask you to confirm its default
  1163. if you don't use this option.
  1164.  
  1165. =item B<-S>
  1166.  
  1167. Send without asking for confirmation.
  1168.  
  1169. =item B<-s>
  1170.  
  1171. Subject to include with the message.  You will be prompted if you don't
  1172. supply one on the command line.
  1173.  
  1174. =item B<-t>
  1175.  
  1176. Test mode.  The target address defaults to B<perlbug-test@perl.org>.
  1177.  
  1178. =item B<-v>
  1179.  
  1180. Include verbose configuration data in the report.
  1181.  
  1182. =back
  1183.  
  1184. =head1 AUTHORS
  1185.  
  1186. Kenneth Albanowski (E<lt>kjahds@kjahds.comE<gt>), subsequently I<doc>tored
  1187. by Gurusamy Sarathy (E<lt>gsar@activestate.comE<gt>), Tom Christiansen
  1188. (E<lt>tchrist@perl.comE<gt>), Nathan Torkington (E<lt>gnat@frii.comE<gt>),
  1189. Charles F. Randall (E<lt>cfr@pobox.comE<gt>), Mike Guy
  1190. (E<lt>mjtg@cam.a.ukE<gt>), Dominic Dunlop (E<lt>domo@computer.orgE<gt>),
  1191. Hugo van der Sanden (E<lt>hv@crypt.org<gt>),
  1192. Jarkko Hietaniemi (E<lt>jhi@iki.fiE<gt>), Chris Nandor
  1193. (E<lt>pudge@pobox.comE<gt>), Jon Orwant (E<lt>orwant@media.mit.eduE<gt>,
  1194. and Richard Foley (E<lt>richard@rfi.netE<gt>).
  1195.  
  1196. =head1 SEE ALSO
  1197.  
  1198. perl(1), perldebug(1), perldiag(1), perlport(1), perltrap(1),
  1199. diff(1), patch(1), dbx(1), gdb(1)
  1200.  
  1201. =head1 BUGS
  1202.  
  1203. None known (guess what must have been used to report them?)
  1204.  
  1205. =cut
  1206.  
  1207.  
  1208. __END__
  1209. :endofperl
  1210.