well, my script puts them in array.
so to access them you would use:
$groupNames[0] for the first, $groupNames[1] for the second and so on.

or just simply:
for each $groupName in $groupNames

for each pulls each element of given array one at a time.

and you could always post what you have this far and let us look at it.
_________________________
!

download KiXnet