Subject: | bug in parse.pm |
Date: | Thu, 19 Apr 2007 16:49:34 -0700 |
To: | bug-Chess-PGN-Parse [...] rt.cpan.org |
From: | "Zachary Ziegler" <zcz7000 [...] gmail.com> |
Hi I just got done using Chess::PGN::Parse, very excellent tool.
However, I did notice an infinite loop type hang when parsing thru 5 Gig
worth of PGN files.
If your PGN has an embedded [ inside any [ ] block, it will hang up. Maybe
your already aware of this.
I suggest adding this line of code to parse.pm
in Parse.pm line 789 I added this code and it fixed the issue.
elsif (/^\[/ && (! $memory{game}) && index(substr($_,1),"[") eq -1 )
{
I found several hundred cases of this, maybe people dont know how to save
thier chess games?...
rgds,
Zach