http://qs321.pair.com?node_id=601822


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