Skip Menu |

This queue is for tickets about the Math-Prime-TiedArray CPAN distribution.

Report information
The Basics
Id: 58151
Status: new
Priority: 0/
Queue: Math-Prime-TiedArray

Owner: Nobody in particular
Requestors: user42 [...]

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

Subject: shift offset and plain fetch
Date: Sat, 05 Jun 2010 08:58:31 +1000
To: bug-Math-Prime-TiedArray [...]
From: Kevin Ryde <user42 [...]>
Download (untitled) / with headers
text/plain 249b
With Math::Prime::TiedArray 0.04 the program below prints 2 3 5 2 where I hoped the last number would be 7, since that's the next prime after shifting off the first 3, the same as it would be from an ordinary untied array.
text/x-perl 203b
use strict; use warnings; use Math::Prime::TiedArray; tie my @primes, "Math::Prime::TiedArray"; print shift(@primes), "\n"; print shift(@primes), "\n"; print shift(@primes), "\n"; print $primes[0],"\n";

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to