in reply to Re: Returning array values
in thread Returning array values

I believe that if you remove the second @ and the ()
from around the call to GetUsers():
 @users = @{GetUsers()};
leaving you with  @users = GetUsers();
your code should work the way you expected in the first place.