From: Lance U. <la...@ve...> - 2002-03-26 16:18:36
|
> Hello, > > I am a fairly new Perl programmer (a few weeks), and am working on > integrating our LDAP directory with another database. I seem to be > having problems with my filter string in one particular instance. I'm > thinking that it has to do with the fact that I'm trying to use a > variable in my filter string. I know that the DBI module has the > ability to bind variables when you execute the SQL statement. Does the > search method of the LDAP module have something similar I can't figure > out? > > Here's the code that seems to be giving me trouble: > my $mesg = $ldap->search(...,filter => 'uid=$item', ...) [snip] Try using double quotes here because single quotes will not expand the variable. -Lance |