Skip Menu |

This queue is for tickets about the Pod-XML CPAN distribution.

Report information
The Basics
Id: 21303
Status: resolved
Priority: 0/
Queue: Pod-XML

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.96
Fixed in: (no value)



Subject: pod2xml should print diagnostics to STDERR
The first line of pod2xml output is information about the module and version. Unfortunately this is printed to STDOUT, so it is not possible to use pod2xml with STDIN and STDOUT redirection --- the diagnostics output would garble the XML output. A better solution would be to send the diagnostic output to STDERR. However, a far better solution to not print any extra output, but just leave the information to some option switch like -v or -version. Regards, Slaven
From: matt [...] mattsscripts.co.uk
On Sun Sep 03 14:41:42 2006, SREZIC wrote: Show quoted text
> The first line of pod2xml output is information about the module and > version. Unfortunately this is printed to STDOUT, so it is not > possible to use pod2xml with STDIN and STDOUT redirection --- the > diagnostics output would garble the XML output. > > A better solution would be to send the diagnostic output to STDERR. > However, a far better solution to not print any extra output, but just > leave the information to some option switch like -v or -version. > > Regards, > Slaven
Absolutely correct. I think this was the result of a debug string mis-placed. Removed for next release.
Index: scripts/pod2xml =================================================================== --- scripts/pod2xml (revision 20) +++ scripts/pod2xml (revision 21) @@ -25,8 +25,6 @@ use Pod::XML; -print "Using Pod::XML version $Pod::XML::VERSION.\n"; - my $parser = Pod::XML->new (); if ( @ARGV )