Skip Menu |

This queue is for tickets about the Var-Pairs CPAN distribution.

Report information
The Basics
Id: 94551
Status: resolved
Priority: 0/
Queue: Var-Pairs

People
Owner: Nobody in particular
Requestors: garry [...] usableit.co.uk
Cc:
AdminCc:

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



Subject: next_pair() not defined ?
Date: Wed, 9 Apr 2014 04:23:01 +0100
To: bug-var-pairs [...] rt.cpan.org
From: Garry Heaton <garry [...] usableit.co.uk>
Perl: 5.16 / Var::Pairs 0.002000 / Mac OS X 10.8 This example is given in the SYNOPSIS: while (my $next = next_pair %hash) { say $next->key, ' had the value ', $next->value; $next->value++; } However, the sub next_pair() doesn't appear to be defined. Substituting each_pair() works so maybe this is what was intended. Garry Heaton
Subject: Re: [rt.cpan.org #94551] next_pair() not defined ?
Date: Wed, 9 Apr 2014 06:12:49 +0200
To: bug-Var-Pairs [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Show quoted text
> However, the sub next_pair() doesn't appear to be defined.
Yes, it's definitely a typo. each_pair() was intended. I've fixed it in the next release. Many thanks, Garry. Damian