CPanel Accounting -- Perl Question

LightForce

Registered
Jun 1, 2003
3
0
151
Anyone know if there is a way to access specific eliments of a package via the Perl Accounting module?

More specifically, I would like to be able to export the details of a given package such as bandwidth, quota, e-mail restrictions etc.

I was able to list my accounts, but I was not able to extract details about each account.


Thanks for your help!!!!

cPanel.net Support Ticket Number:
 

geomir

Member
Mar 17, 2004
12
0
151
#data taken from list accounts
my $account_name="blabla";
my $package_for_account="blablapackage";

#GET PACKAGES DATA
my %PKGS=$whm->listpkgs();

foreach my $pkg(keys %PKGS)
{

#THE FOLLOWING ARRAY CONTAINTS ALL THE INFO ABOUT #THE PACKAGE

# @{$PKGS{$pkg}}

}

#P.S. the same way you get all the info for an account, the only difference is that you list accounts.