Skip Menu |

This queue is for tickets about the Business-PayPal CPAN distribution.

Report information
The Basics
Id: 96394
Status: resolved
Priority: 0/
Queue: Business-PayPal

People
Owner: Nobody in particular
Requestors: dkoenig [...] ferienwohnungen.de
Cc:
AdminCc:

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



Subject: Example re Business::PayPal->new($id) wrong
Date: Thu, 12 Jun 2014 07:47:14 +0000
To: <bug-Business-PayPal [...] rt.cpan.org>
From: Dietmar König <dkoenig [...] ferienwohnungen.de>
Hello, In the synopsis you see as example for instantiation of Business::PayPal the line: my $paypal = Business::PayPal->new($id); This causes the error: Odd number of elements in anonymous hash at /usr/lib/perl5/site_perl/5.10.0/Business/PayPal.pm line 245 to appear in the error logs. The correct way to instantiate would be: my $paypal = Business::PayPal->new(id => $id); Regards, Dietmar Koenig Fewodata e.K. Am Mühlenteich 7 D-24960 Glücksburg (Ostsee) Handelsregister-Nr.: 2 HRA 4382 Handelsgericht: Flensburg USt-IdNr.: DE216916029 Telefon: 0049 (0)4631 44460-0 Fax: 0049 (0)4631 44460-210 E-Mail: support@ferienwohnungen.de

Message body is not shown because it is too large.

From: mcgrath.martin [...] gmail.com
On Thu Jun 12 08:47:15 2014, dkoenig@ferienwohnungen.de wrote: Show quoted text
> > > Hello, > In the synopsis you see as example for instantiation of > Business::PayPal the line: > my $paypal = Business::PayPal->new($id); > This causes the error: > Odd number of elements in anonymous hash at > /usr/lib/perl5/site_perl/5.10.0/Business/PayPal.pm line 245 > to appear in the error logs. > The correct way to instantiate would be: > my $paypal = Business::PayPal->new(id => $id); > Regards, > Dietmar Koenig
Hi, are you running an old version? Changes states: 0.04 2010 Aug 04 - fix incorrect synopsis for new() method with id The current version on cpan is v0.13.
Subject: Re: [rt.cpan.org #96394] Example re Business::PayPal->new($id) wrong
Date: Thu, 12 Jun 2014 09:29:25 +0000
To: <bug-Business-PayPal [...] rt.cpan.org>
From: Dietmar König <dkoenig [...] ferienwohnungen.de>
Hi Martin, checking the page again, yes you are right. I used a google search (Perl CPAN PayPal) and followed the 2nd entry on the serp. That lead to http://search.cpan.org/~phred/Business-PayPal-0.03/PayPal.pm and on that page I dived straight in and completely missed the "Latest Release: Business-PayPal-0.04" link. I confirm that the bug has already been fixed as of that version. Sorry for filing an already fixed bug :-( Regards, Dietmar Show quoted text
-------- Original Message -------- Subject: [rt.cpan.org #96394] Example re Business::PayPal->new($id) wrong (12-Jun-2014 11:16) From: Martin McGrath via RT <bug-Business-PayPal@rt.cpan.org> To: dkoenig@ferienwohnungen.de
> <URL: https://rt.cpan.org/Ticket/Display.html?id=96394 > > > On Thu Jun 12 08:47:15 2014, dkoenig@ferienwohnungen.de wrote:
> > > > > > Hello, > > In the synopsis you see as example for instantiation of > > Business::PayPal the line: > > my $paypal = Business::PayPal->new($id); > > This causes the error: > > Odd number of elements in anonymous hash at > > /usr/lib/perl5/site_perl/5.10.0/Business/PayPal.pm line 245 > > to appear in the error logs. > > The correct way to instantiate would be: > > my $paypal = Business::PayPal->new(id => $id); > > Regards, > > Dietmar Koenig
> > Hi, are you running an old version? Changes states: > > 0.04 2010 Aug 04 > - fix incorrect synopsis for new() method with id > > The current version on cpan is v0.13.
Subject: Re: [rt.cpan.org #96394] Example re Business::PayPal->new($id) wrong
Date: Thu, 12 Jun 2014 12:31:57 +0300
To: bug-Business-PayPal [...] rt.cpan.org
From: Gabor Szabo <SZABGAB [...] cpan.org>
Show quoted text
> Sorry for filing an already fixed bug :-(
No problem :) I'd recommend always using MetaCPAN for reading docs: https://metacpan.org/pod/Business::PayPal Gabor
Subject: Re-2: [rt.cpan.org #96394] Example re Business::PayPal->new($id) wrong
Date: Thu, 12 Jun 2014 09:37:59 +0000
To: <bug-Business-PayPal [...] rt.cpan.org>
From: Dietmar König <dkoenig [...] ferienwohnungen.de>
Thanks for the link to metacpan - I will keep that bookmarked. That page also lists the current version as 0.13, which matches what cpan tells me on the command line, so I don't have to check. Regards, Dietmar -- Mit freundlichen Grüßen Dietmar König -------------------------------- http://www.ferienwohnungen.de Ferienwohnungen und Ferienhäuser direkt vom Vermieter Blog: http://www.ferienwohnungen.de/blog Facebook: https://www.facebook.com/ferienwohnungen.de Twitter: https://twitter.com/fewodata Google+: https://plus.google.com/103111858000942895344 Pinterest: https://pinterest.com/fewodata/ Fewodata e.K. Am Mühlenteich 7 D-24960 Glücksburg (Ostsee) Handelsregister-Nr.: 2 HRA 4382 Handelsgericht: Flensburg USt-IdNr.: DE216916029 Telefon: 0049 (0)4631 44460-0 Fax: 0049 (0)4631 44460-210 E-Mail: support@ferienwohnungen.de Show quoted text
-------- Original Message -------- Subject: Re: [rt.cpan.org #96394] Example re Business::PayPal->new($id) wrong (12-Jun-2014 11:32) From: Gabor Szabo via RT <bug-Business-PayPal@rt.cpan.org> To: dkoenig@ferienwohnungen.de
> <URL: https://rt.cpan.org/Ticket/Display.html?id=96394 > >
> > Sorry for filing an already fixed bug :-(
> > No problem :) > > I'd recommend always using MetaCPAN for reading docs: > https://metacpan.org/pod/Business::PayPal > > Gabor >
It seems this was fixed a while ago.