Re: Remove list of users from a group

Peter Karman <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
Danny Burkland wrote on 04/08/2010 01:28 PM:

> <http://pastebin.com/83FN3wUR>

Be sure to add:

 use strict;
 use warnings;

right at the top of all your code. It's shorthand for "I want this code
to actually work."

Be sure to check the return values of your function and method calls.
The typical Perl idiom looks like:

 my $value = $thing->dosomething(@args)
    or die "dosomthing failed: " . $thing->error;

That assumes that dosomething returns false on error and has an error()
method but you get the idea.

-- 
Peter Karman  .  http://peknet.com/  .  [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.