Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-11-29 23:11 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls