Skip to content

[doc] SYNOPSIS Net::LDAP::LDIF->new #23381

Closed as not planned
Closed as not planned
@sjvudp

Description

@sjvudp

Where
Net::LDAP::LDIF

Description

I found an old-time bug in the POD for Net::LDAP::LDIF(3):
The SYNOPSIS says:

$ldif = Net::LDAP::LDIF->new( "file.ldif", "r", onerror => 'undef' );

But later on it says:

onerror => 'die' | 'warn' | undef

Note that “undef” is not quoted, meaning the undef value, not the string “undef”.
I guess the undef value is actually meant. Unfortunately the wrong SYNOPSIS made many users (e.g. myself) copy and use the wrong code…

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions