On 8/6/06 3:25, Marc Chantreux <[EMAIL PROTECTED]> wrote: > Hi all, > > I wrote a patch to ease the creation of entries. Once applied, this code > > sub create { > my $dn = shift; > > my $e = new Net::LDAP::Entry ; > $e->dn( $dn ); > $e->add( objectClass => [EMAIL PROTECTED] ); > > return $e; > } > > can be written like this : > > sub create { > my $dn = shift; > > return Net::LDAP::Entry > -> new ( $dn ) > -> add ( objectClass => [EMAIL PROTECTED] ) > } > > I hope some of you will enjoy the idea.
That looks useful. Can you include a patch for the docs too? (Evil cackle :-) Cheers, Chris