Re: Help please - still not understanding references I think...

2003-07-31 Thread Tim Musson
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

Re: Help please - still not understanding references I think...

2003-07-31 Thread Peter Scott
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

Re: Help please - still not understanding references I think...

2003-07-30 Thread Tim Musson
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

Re: Help please - still not understanding references I think...

2003-07-30 Thread Peter Scott
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

RE: Help please - still not understanding references I think...

2003-07-30 Thread NYIMI Jose (BMB)
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

Re: Help please - still not understanding references I think...

2003-07-30 Thread Tim Musson
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

RE: Help please - still not understanding references I think...

2003-07-30 Thread bseel
[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

Help please - still not understanding references I think...

2003-07-30 Thread Tim Musson
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