Skip Menu |

This queue is for tickets about the Parse-FixedLength CPAN distribution.

Report information
The Basics
Id: 16758
Status: resolved
Priority: 0/
Queue: Parse-FixedLength

People
Owner: Nobody in particular
Requestors: Rob_Biedenharn [...] alum.mit.edu
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 5.36
Fixed in: 5.37



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
Fixed in 5.37. Thanks!
Fixed in 5.37