Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Enumerate MS AD Group Membership

by idsfa (Vicar)
on Feb 23, 2007 at 20:43 UTC ( #601822=note: print w/ replies, xml ) Need Help??


in reply to Enumerate MS AD Group Membership

Updated: <struck> Never let a unix guy answer a win question.

Updated: Perhaps you wanted this example? (Which apparently partially exonerates my original comments ... so I'm going to </strike>)


foreach my $strGroupDN (in $colGroups)

Is not perl. Specifically, your $colGroups is not an array. Without digging into the guts of the Get method, I'll hazard that it is returning a reference to an array of strings. I think you want:

foreach my $strGroupDN (@{$colGroups})

The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon


Comment on Re: Enumerate MS AD Group Membership
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://601822]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2014-07-31 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls