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