Skip Menu |

This queue is for tickets about the File-Stream CPAN distribution.

Report information
The Basics
Id: 15815
Status: resolved
Worked: 1.2 hours (70 min)
Priority: 0/
Queue: File-Stream

People
Owner: smueller [...] cpan.org
Requestors: lallip [...] cs.rpi.edu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.11
Fixed in: (no value)



Subject: stream parsing failure
For the following sample program: #!/usr/bin/perl use strict; use warnings; use File::Stream; my $stream = File::Stream->new(*DATA); local $/ = qr/\d+(?:\.\d+)?/; while (<$stream>){ print "Line: '$_'\n"; } __DATA__ foo 35.3 bar 35 baz Output is: Line: 'foo 35.3' Line: ' bar 35 baz ' The '35' is not being recognized as a record terminator, even though it matches the pattern specified by $/. Results seen in perl v5.8.7 built for sun4-solaris-thread-multi, File::Stream version 1.11. A discussion of this issue occurred in c.l.p.m at http://groups.google.com/group/comp.lang.perl.misc/tree/browse_frm/thread/d5099ce669da34e7/150ca927610a7874?rnum=1&_done=%2Fgroup%2Fcomp.lang.perl.misc%2Fbrowse_frm%2Fthread%2Fd5099ce669da34e7%2F2c7c925cf0878e09%3F#doc_150ca927610a7874 It was determined that the issue was not present in version 1.10
The problem is being worked on. Probable fix: Switch from using YAPE::Regex to Regexp::Parser. The bug lies within YAPE::Regex.
Problem resolved in YAPE::Regex 3.02 and File::Stream 2.00 respectively. New version of File::Stream will be uploaded to PAUSE within the hour. Thanks for the bug report.