Perl-Sensitive Sunglasses | |
PerlMonks |
Phone lookup on Exchange serverby jlf (Scribe) |
on Feb 13, 2002 at 01:01 UTC ( [id://145036]=perlquestion: print w/replies, xml ) | Need Help?? |
jlf has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
Our company's phone list is accessible through our internal web server, but the UI is suboptimal in that it requires you to search by surname and wastes time by forcing you through multiple web forms, just to find a phone number. I set out to make a friendlier telephone number lookup function that would be accessible from the command line. The result is below, and permits case-insensitive substring searches of users' names. The reason I'm posting in SoPW is that I think my implementation is rather inefficient because I'm using Win32::NetAdmin to enumerate users and Net::LDAP to get details about matching users -- it seems that Net::LDAP ought to be able to do it all but I can't figure out how to make it work. Any help in this regard as well as general thoughts about style or optimization are appreciated. Josh
Back to
Seekers of Perl Wisdom
|
|