Skip Menu |

This queue is for tickets about the Net-APNS-Persistent CPAN distribution.

Report information
The Basics
Id: 52517
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Net-APNS-Persistent

People
Owner: mark [...] aufflick.com
Requestors: martin [...] kollaard.eu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.01
  • 0.01b
  • 0.01c
  • 0.01d
Fixed in: 0.02



Subject: '/' must be followed by 'a*', 'A*' or 'Z*' in pack at /usr/local/share/perl/5.8.8/Net/APNS/Persistent.pm line 210.
I use the example script. and working certificate files. but when I run the script: '/' must be followed by 'a*', 'A*' or 'Z*' in pack at /usr/local/share/perl/5.8.8/Net/APNS/Persistent.pm line 210. I have installed perl 5.8.8 on ubuntu 8.04 with newest version net::APNS:Persistent When more information needed ask me :)
Ah - this seems to be perl version specific. The perl 5.10 pack perldoc specifically indicates that the * is optional: http://perldoc.perl.org/functions/pack.html Show quoted text
> For pack, the sequence-item may have a repeat count, in which case > the minimum of that and the number of available items is used as > argument for the length-item. If it has no repeat count or uses > a '*', the number of available items is used.
But a 5.8.6 I have lying around shows it is not: Show quoted text
> For "pack", the string-item must, at present, be "A*", > "a*" or "Z*".
I tested on 5.8.9 which must have been when the * became optional. It makes no difference either way, so I'll add it and upload a new version in the next day or so. If you want to try it yourself in the meantime, just edit Persistent.pm and change both n/a to n/a* in the return pack statement on line 210.
Hi Martin, This should be fixed in 0.2 - can you please check and confirm? It might take a day to get to your cpan mirror, or you can download it from search.cpan.org (where it should get to in a few hours from now). Mark.
Subject: Re: [rt.cpan.org #52517] '/' must be followed by 'a*', 'A*' or 'Z*' in pack at /usr/local/share/perl/5.8.8/Net/APNS/Persistent.pm line 210.
Date: Mon, 7 Dec 2009 15:16:42 +0100
To: bug-Net-APNS-Persistent [...] rt.cpan.org
From: Martin Kollaard <martin [...] kollaard.eu>
Yes it works. Good work :) On Dec 7, 2009, at 12:08 PM, Mark Aufflick via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=52517 > > > Hi Martin, > > This should be fixed in 0.2 - can you please check and confirm? > > It might take a day to get to your cpan mirror, or you can download it from > search.cpan.org (where it should get to in a few hours from now). > > Mark.