diff -r 05d5ada37387 -r 36aca6fb0ab8 ldapBase.pm --- a/ldapBase.pm Fri Nov 25 15:29:45 2011 +0100 +++ b/ldapBase.pm Mon Nov 28 09:49:28 2011 +0100 @@ -1,4 +1,5 @@ package ldapBase; + # © Heiko Schlittermann # $Id$ # $URL$ @@ -6,16 +7,15 @@ use strict; use warnings; use Exporter(); -our @ISA = qw/Exporter/; +our @ISA = qw/Exporter/; our @EXPORT = qw/&ldapBase/; - -sub ldapBase(@) { - no warnings 'once'; - local @ARGV = grep { -f } @_; +sub ldapBase(@) { + no warnings 'once'; + local @ARGV = grep { -f } @_; die "Can't find ldap.conf (searched @_)\n" if !@ARGV; - my $r = (reverse grep { /^\s*BASE\s+(.*?)\s*$/ and $_ = $1 } <>)[0]; + my $r = ( reverse grep { /^\s*BASE\s+(.*?)\s*$/ and $_ = $1 } <> )[0]; return $r; -}; +} # vim:sts=4 sw=4 aw ai sm: