in reply to searching LDAP and writing to text file

I figured out why it was only getting one entry, but I have no idea why its not writing the information to the log file. How do I take what it finds and put that data in a file that can be viewed?
  • Comment on Re: searching LDAP and writing to text file

Replies are listed 'Best First'.
Re^2: searching LDAP and writing to text file
by hominid (Priest) on Oct 27, 2008 at 18:07 UTC
    It looks like you will only write to your log file when
    if (($um_user_type =~ /F/)) { print FLOG "$entry->{usertype}[0] - Address $entry->{mail} +[0]\n"; print "Functional- $entry->{usertype}[0] - Address $entry +->{mail}[0]\n";
    But, I don't see where you set the variable $um_user_type to the usertype returned from your search, so that if block is never entered.