diff -r 59c7146ec6f0 -r 66bf85163780 ldapBase.pm --- a/ldapBase.pm Tue Jul 31 10:46:37 2007 +0000 +++ b/ldapBase.pm Fri Feb 21 11:56:39 2014 +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: