Skip Menu |

This queue is for tickets about the Queue-Base CPAN distribution.

Report information
The Basics
Id: 53728
Status: resolved
Priority: 0/
Queue: Queue-Base

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



Subject: add() of 0
Date: Sat, 16 Jan 2010 08:26:18 +1100
To: bug-Queue-Base [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
With Queue::Base 1.1 and debian i386 perl 5.10.1, a program use strict; use warnings; use Queue::Base; my $q = Queue::Base->new; $q->add (0); $q->add (10); $q->add (20); print "size ",$q->size,"\n"; prints "size 2", where I expected it to be "size 3" after three add()s. I suspect the add() can be something like "push @{list}, @_" instead of a loop.
Kevin, On Fri Jan 15 16:27:07 2010, user42@zip.com.au wrote: Show quoted text
> With Queue::Base 1.1 and debian i386 perl 5.10.1, a program > > use strict; > use warnings; > use Queue::Base; > > my $q = Queue::Base->new; > $q->add (0); > $q->add (10); > $q->add (20); > print "size ",$q->size,"\n"; > > prints "size 2", where I expected it to be "size 3" after three
add()s. Show quoted text
> > I suspect the add() can be something like "push @{list}, @_" instead > of a loop.
This one is also working with the latest version. Cheers, Alexei