Skip Menu |

This queue is for tickets about the perl-ldap CPAN distribution.

Report information
The Basics
Id: 93945
Status: resolved
Priority: 0/
Queue: perl-ldap

People
Owner: Nobody in particular
Requestors: soros [...] multip.hu
Cc:
AdminCc:

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



Subject: Net/LDAP/Util.pm
Date: Mon, 17 Mar 2014 17:53:10 +0100
To: bug-perl-ldap [...] rt.cpan.org
From: Sörös József <soros [...] multip.hu>
Dear Norbert! I received this error message below in Net/LDAP/Util.pm -------------------- Use of uninitialized value $dec in concatenation (.) or string at /usr/local/share/perl/5.14.2/Net/LDAP/Util.pm line 756 (#1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables. To help you figure out what was undefined, perl will try to tell you the name of the variable (if any) that was undefined. In some cases it cannot do this, so it also tells you what operation you used the undefined value in. Note, however, that perl optimizes your program and the operation displayed in the warning may not necessarily appear literally in your program. For example, "that $foo" is usually optimized into "that " . $foo, and the warning will refer to the concatenation (.) operator, even though there is no . in your program. --------------------------- Suggested change: if(defined $dec) { $dec = "0.$dec"; # original } else { $dec = "0"; } Thanks in advance: Joseph -- Sörös József E-Mail: soros.jozsef@multip.hu Mobil: +36309403985
Download smime.p7s
application/pkcs7-signature 3.5k

Message body not shown because it is not plain text.

Hi József, On Mon Mar 17 12:53:22 2014, soros@multip.hu wrote: Show quoted text
> Dear Norbert! > > I received this error message below in Net/LDAP/Util.pm > > -------------------- > Use of uninitialized value $dec in concatenation (.) or string at > /usr/local/share/perl/5.14.2/Net/LDAP/Util.pm line 756 (#1) > (W uninitialized) An undefined value was used as if it were already > defined. It was interpreted as a "" or a 0, but maybe it was a mistake. > To suppress this warning assign a defined value to your variables. > > To help you figure out what was undefined, perl will try to tell you the > name of the variable (if any) that was undefined. In some cases it > cannot > do this, so it also tells you what operation you used the undefined > value > in. Note, however, that perl optimizes your program and the operation > displayed in the warning may not necessarily appear literally in your > program. For example, "that $foo" is usually optimized into "that " > . $foo, and the warning will refer to the concatenation (.) operator, > even though there is no . in your program. > --------------------------- > > Suggested change: > > if(defined $dec) { > $dec = "0.$dec"; # original > } else { > $dec = "0"; > }
Thanks for the bug report. I added a similar patch that will be included in the next version of perl-ldap, which I hope to be able to release in the next weeks. One question though: Who is this Norbert you are addressing in the bug report ;-) Best regards Peter
Subject: Re: [rt.cpan.org #93945] Net/LDAP/Util.pm
Date: Mon, 17 Mar 2014 21:59:31 +0100
To: bug-perl-ldap [...] rt.cpan.org
From: Sörös József <soros [...] multip.hu>
Hi Peter! This is Norbert Klasen. I have read it from the modules source file and I addressed the letter to him. I am sorry. ----------------------- # Copyright (c) 1999-2004 Graham Barr <gbarr@pobox.com> and # Norbert Klasen <norbert.klasen@daasi.de> All Rights Reserved. # This program is free software; you can redistribute it and/or modify # it under the same terms as Perl itself. package Net::LDAP::Util; --------------------------- Thanks for the help: Joseph On 2014.03.17. 20:54, Peter Marschall via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=93945 > > > Hi József, > > On Mon Mar 17 12:53:22 2014, soros@multip.hu wrote:
>> Dear Norbert! >> >> I received this error message below in Net/LDAP/Util.pm >> >> -------------------- >> Use of uninitialized value $dec in concatenation (.) or string at >> /usr/local/share/perl/5.14.2/Net/LDAP/Util.pm line 756 (#1) >> (W uninitialized) An undefined value was used as if it were already >> defined. It was interpreted as a "" or a 0, but maybe it was a mistake. >> To suppress this warning assign a defined value to your variables. >> >> To help you figure out what was undefined, perl will try to tell you the >> name of the variable (if any) that was undefined. In some cases it >> cannot >> do this, so it also tells you what operation you used the undefined >> value >> in. Note, however, that perl optimizes your program and the operation >> displayed in the warning may not necessarily appear literally in your >> program. For example, "that $foo" is usually optimized into "that " >> . $foo, and the warning will refer to the concatenation (.) operator, >> even though there is no . in your program. >> --------------------------- >> >> Suggested change: >> >> if(defined $dec) { >> $dec = "0.$dec"; # original >> } else { >> $dec = "0"; >> }
> > > Thanks for the bug report. > I added a similar patch that will be included in the next version of perl-ldap, > which I hope to be able to release in the next weeks. > > One question though: > Who is this Norbert you are addressing in the bug report ;-) > > Best regards > Peter >
-- Sörös József E-Mail: soros.jozsef@multip.hu Mobil: +36309403985
Download smime.p7s
application/pkcs7-signature 3.5k

Message body not shown because it is not plain text.