Skip Menu |

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

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

People
Owner: GBARR [...] CPAN.ORG
Requestors: stephen [...] jadevine.org.uk
Cc:
AdminCc:

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



Subject: Net::LDAP::LDIF - small bug in new()
I noticed in the new() sub of Net::LDAP::LDIF that the object is initialised as: my $self = { changetype => "modify", modify => 'add', wrap => 78, %opt, fh => $fh, file => "$file", opened_fh => $opened_fh, eof => 0, write_count => ($mode eq 'a' and tell($fh) > 0) ? 1 : 0, }; Noting the spelling of the "eof" attribute but later in the eof() sub: sub eof { my $self = shift; my $eof = shift; if ($eof) { $self->{_eof} = $eof; } $self->{_eof}; } There is an underscore there in the attribute "_eof". I can see that this won't actually cause any problems with the code but it did cause me a bit of confusion when reading the code. Thanks, Stephen Quinney