Subject: | Specifying 'C' or 'c' in format |
Doug,
It appears that you may have a slight bug in _parse_format, line 173:
1 package Parse::FixedLength;
10 $VERSION = '5.36';
170 my $len = $type =~ /[AaZ]/ && $repeat
171 || $type =~ /b/i && int((($repeat/16)-.01) + 1)
172 || $type =~ /h/i && int((($repeat/2)-.01) + 1)
173 || $type =~ /cC/i && 1
174 || $type =~ /[sSnv]/ && 2
175 || $type =~ /[lLNV]/ && 4
176 || $type =~ /q/i && 8
177 || undef;
It is probably meant to be either: (matching 174 and 175)
173 || $type =~ /[cC]/ && 1
or more likely: (matching 171, 172, and 176)
173 || $type =~ /c/i && 1
-Rob