Hey Peter,
My MUA believes you used
to write the following on Thursday, July 31, 2003 at 10:45:04 AM.
PS> Look for Randal Schwartz's new book on references from O'Reilly.
Ah, cool, will get that soonest!
--
Tim Musson
Flying with The Bat! eMail v1.62q
Windows 2000 5.0.2195 (Service P
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Tim Musson) writes:
>Thanks Peter!,
[snip]
>PS> my $href = $result->as_struct;
>PS> for my $dn (keys %$href) {
>PS> print "cn of $dn is $href->{$dn}{cn}[0]\n";
>PS> }
>
>That is exactly what I was looking for!
>
>PS> (That's taking advantage of
Thanks Peter!,
PS> That's because you missed out the next line, where the value from
PS> (the equivalent of) @$valref{cn} is dereferenced again with
PS> @$attrVal.
PS> I don't know why the dereferencing is done in the example with
PS> @$valref{$attrName}; that's needlessly complicated (single el
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Tim Musson) writes:
>Hey all,
>
> I am using the perl-ldap module (to access MS AD, not that that
> matters to this question though :-).
>
> My problem is I don't understand part of the example code - it all
> works just fine, but using th
use Data::Dumper;
print Dumper($ref);
-Original Message-
From: Tim Musson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 3:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Help please - still not understanding references I think...
Hey bseel,
My MUA believes you used
to
Hey bseel,
My MUA believes you used
to write the following on Wednesday, July 30, 2003 at 9:38:08 AM.
>>> I was thinking (and the documents say) these are references, but I
>>> have had a hard time getting my head around references...
>>>
>>> I have tried adding this
>>> pri
[Snipped]
>> I was thinking (and the documents say) these are references, but I
>> have had a hard time getting my head around references...
>>
>> I have tried adding this
>> print @$valref{cn};
>> but all it prints is
>> ARRAY(0x25d9ec4)
>> and I want it to print the value o
Hey all,
I am using the perl-ldap module (to access MS AD, not that that
matters to this question though :-).
My problem is I don't understand part of the example code - it all
works just fine, but using the "as_struct" method, I need to just
display the "cn" attribute (I need to w