Hi, I am working on a perl script to fetch all the realms and store it inside a perl array. The Domain has 272 realms. However, when I store the elements inside the array and try to write them inside a text file, it only shows 82 realms. We are using Netegrity::PolicyMgtAPI package to create the session. Here is my script:

 

 

@realms=$domain->GetAllRealms();

$i=0;
$realmSize=@realms;
print fileWrite “nSize of the Realm array is ” . $realmSize;          #Shows the size 82, where originial size should be 272

foreach $realm(@realms)
{
print fileWrite “nRealm Name is” . $realm->Name();           #Shows 82 entries only
}

 

Also, if you think this might be a memory issue, could you please let me know how do I overcome it? 


Source: New feed
{pubDate}

Leave a Reply

Your email address will not be published. Required fields are marked *