Skip to content

Commit

Permalink
Use ->new for all constructor examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Ridd committed May 22, 2003
1 parent 37c42c7 commit e5fab06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Net/LDAP/FAQ.pod
Expand Up @@ -988,7 +988,7 @@ whatever is relevant to your setup.
local $/ = undef;
my $jpeg = <$filename>;

my $ldap = new Net::LDAP(...);
my $ldap = Net::LDAP->new(...);
my $res = $ldap->bind(...);
$res = $ldap->modify(...,
add => [ 'jpegPhoto' => [ $jpeg ] ]);
Expand All @@ -1014,7 +1014,7 @@ whatever is relevant to your setup.
local $/ = undef;
my $jpeg = <$filename>;

my $ldap = new Net::LDAP(...);
my $ldap = Net::LDAP->new(...);
my $res = $ldap->bind(...);
$res = $ldap->modify(...,
add => [ 'jpegPhoto' => [ $jpeg ] ]);
Expand Down Expand Up @@ -1113,7 +1113,7 @@ replace the placeholders.
$ADS_RIGHT_EXCH_MAIL_SEND_AS |
$ADS_RIGHT_EXCH_MODIFY_USER_ATT;

$exch = new Net::LDAP('server', debug =>0) || die $@;
$exch = Net::LDAP->new('server', debug =>0) || die $@;

$exch->bind( 'cn=admin_user,cn=nt_domain,cn=admin', version =>3,
password=>'password');
Expand Down

0 comments on commit e5fab06

Please sign in to comment.