CC: | vesselin kavalov <vkavalov [...] apple.com> |
Subject: | Pod::Simple clobbers my command-line switch definition |
Date: | Tue, 11 Jan 2011 15:46:35 -0800 |
To: | bug-pod-simple [...] rt.cpan.org |
From: | vesselin kavalov <vkavalov [...] apple.com> |
Hi,
if you run 'perldoc ' you should see:
-----------------------------------------------------------------------------------------------------------------------------
TEST_D(1) User Contributed Perl Documentation TEST_D(1)
OPTIONS
-D<macro>
Configuration MACROS
perl v5.10.1 2011-01-11 TEST_D(1)
-----------------------------------------------------------------------------------------------------------------------------
instead, you see (see )
I am attaching as well.
I was tracing the problem around and found that 'D' switch gets clobbered in:
Pod::Simple.pm ($VERSION = '3.07'):
line 694 $is = $treelet->[$i][0] = $map->{ $was = $treelet->[$i][0] };
Don't quite understand why only these:
23 @Known_formatting_codes = qw(I B C L E F S X Z);
single CAP letters are preserved ?!?!
if the switch name is '-d' for example - there is no problem. If I use '-E' (from the "insider's list" above ;)
it shows the info OK, but still reports Error ?!
Anyway, it is NOT my choice of using '-D' with no space to the value - it's been a convention in the EDA industry forever - so I am stuck with it.
I would LOVE if U fix this one, since I want to use Getopt::Euclid for my command-line parsing, but it relies on Pod::Simple.
BTW, I found a minor DEBUG reporting bug in Pod::Simple::BlackBox.pm ( ):
1735 } elsif(defined $5) {
1736 DEBUG > 3 and print "Found apparent simple end-text code \"$4\"\n";
^
this should be $5 I think.
Thanx!
vess
Hi,
if you run 'perldoc
Message body not shown because it is not plain text.
' you should see:
-----------------------------------------------------------------------------------------------------------------------------
TEST_D(1) User Contributed Perl Documentation TEST_D(1)
OPTIONS
-D<macro>
Configuration MACROS
perl v5.10.1 2011-01-11 TEST_D(1)
-----------------------------------------------------------------------------------------------------------------------------
instead, you see (see
Message body not shown because it is not plain text.
)
I am attaching
Message body not shown because it is not plain text.
as well.
I was tracing the problem around and found that 'D' switch gets clobbered in:
Pod::Simple.pm ($VERSION = '3.07'):
line 694 $is = $treelet->[$i][0] = $map->{ $was = $treelet->[$i][0] };
Don't quite understand why only these:
23 @Known_formatting_codes = qw(I B C L E F S X Z);
single CAP letters are preserved ?!?!
if the switch name is '-d' for example - there is no problem. If I use '-E' (from the "insider's list" above ;)
it shows the info OK, but still reports Error ?!
Anyway, it is NOT my choice of using '-D' with no space to the value - it's been a convention in the EDA industry forever - so I am stuck with it.
I would LOVE if U fix this one, since I want to use Getopt::Euclid for my command-line parsing, but it relies on Pod::Simple.
BTW, I found a minor DEBUG reporting bug in Pod::Simple::BlackBox.pm ( ):
1735 } elsif(defined $5) {
1736 DEBUG > 3 and print "Found apparent simple end-text code \"$4\"\n";
^
this should be $5 I think.
Thanx!
vess