in reply to Perl Array not able to store all realm objects
There's a pretty good chance (like 100%) that the issue is with GetAllRealms() and not the arrays, so you'll have to give us more information on that.