Greetings,
When I am writing to module authors about their modules, I sometimes want to
include the output of perlbug -d at the end of my message. I tried (in vi)
!!perlbug -d, but perlbug complained about being non-interactive. I checked
the source and found a simple fix. I split the check for opt_d off from the
!-t STDOUT and moved it above the if(!-t STDIN).
p5p-msgid:
199708071418.KAA15711@ns.southern.edu
if($::opt_h) { Help(); exit; }
+if($::opt_d) { Dump(*STDOUT); exit; }
+
if(!-t STDIN) {
paraprint <<EOF;
Please use perlbug interactively. If you want to
die "\n";
}
-if($::opt_d or !-t STDOUT) { Dump(*STDOUT); exit; }
+if(!-t STDOUT) { Dump(*STDOUT); exit; }
Query();
Edit() unless $usefile;