Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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

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 about the Monastery: (9)
As of 2016-10-21 18:48 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.