Good lord I'm embarrassed. I've been looking at this thing for hours
and didn't notice the single quotes. Thanks for pointing that out!
(even though it had nothing to to with the Net::LDAP module itself!) :)
ciao, erich
Chris Ridd wrote:
On 6/5/06 5:39, Erich Weiler <[EMAIL PROTECTED]> wrote:
What I CAN'T seem to do is replace 'cn=staff' with a variable, like
'cn=$ARGV[0]'. When I do that the search doesn't work. Maybe it's
actually searching for the string '$ARGV[0]' instead of actually
inserting the value of the variable there? Can anyone help me figure
this out?
This is basic perl :-) Just write the filter value in double-quotes to get
any variables included in the value ("interpolated", in perl lingo):
filter => "cn=$ARGV[0]"
Cheers,
Chris
--
===================================
Erich Weiler
UNIX Systems Administrator
School of Engineering
University of California Santa Cruz
[EMAIL PROTECTED]
===================================