Jens Diekers wrote:
> in this little command i want to access a element of a array: please look
>
> for ($a=0; $a -le 8; $a++) {dsadd group
> "CN=$hn$b[$a],OU=local,OU=roles,DC=cz,DC=int-e,DC=kaufland" -scope l
>
> The output of the defined variable $hn is ok, but when i want to access
> $b[$a] variable, the array will output his whole content. Do I have to
> mascerade my $b variable?
>
> Any help is welcome?
> THX
It could be $b is a string or something else other than an array.
Before doing your loop, what does "$b.gettype()" give?
Marco
------------------
PowerGadgets MVP
http://www.powergadgets.com/mvp