Skip Menu |

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

Report information
The Basics
Id: 4248
Status: resolved
Priority: 0/
Queue: Parse-RecDescent

People
Owner: Nobody in particular
Requestors: mezam [...] mezami.qc.ca
Cc:
AdminCc:

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



Subject: random generator bug in Abbott & Costello tutorial
In Abbott and Costello, an example from the tutorial "The man(1) of descent" (Parse-RecDescent-1.94/tutorial/tutorial.html) and also in Parse-RecDescent-1.94/demo/demo_whoson.pl. The choose method never return the first element "$_[0]" of the array. use Parse::RecDescent; -sub Parse::RecDescent::choose { $_[1 + int rand $#_]; } +sub Parse::RecDescent::choose { $_[int rand @_]; } $abbott = new Parse::RecDescent <<'EOABBOTT'; There others bugs in the Abbot & Costello version of the tutorial but they are corrected in demo/demo_whoson.pl.
Date: Mon, 03 Nov 2003 10:40:00 +1100
From: Damian Conway <damian [...] conway.org>
To: bug-Parse-RecDescent [...] rt.cpan.org
Subject: Re: [cpan #4248] random generator bug in Abbott & Costello tutorial
RT-Send-Cc:
Fixed. Thanks. Damian
The reported issue appears to be resolved in the current release.