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

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: shift offset and plain fetch
Date: Sat, 05 Jun 2010 08:58:31 +1000
To: bug-Math-Prime-TiedArray [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Download (untitled) / with headers
text/plain 249b
With Math::Prime::TiedArray 0.04 the program foo.pl 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.
Download foo.pl
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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.