Hi,

thanx for considering my problem to read,

you know....


i work for a company,they have a site,and their site has User ID and Password.
they offer some links to their members,and they wanna track each user clicks.
for example,they have 10 links,they want to know,how many times,each memebr has 
clicked on each link.
for example,lets say,we have some links.
www.perl.com
www.perl.org
www.msn.com

and we have also,some user IDs like.....magic2k,perl_master,XML_2_U
what i want,is to do something like this....

for link : www.perl.com  magic2k ...10 times visied   / perl_master 4 times /XML_2_U   
 18 times
for link www.perl.org     magic2k....3 times/XML_2_U 3 times  and so on

they dont have any Database,cause their Server doest let them use Databases

i dont wanna get into details.....

i used MLDM as a database manager.....

and i use information like userID and password in one DBM file,
and I use Hashes of Hashes and this kind of structures .
for getting a user ID,name and password and add it to DBM file i did like this......
 for example ,i only write useful part of my code....
my %user_info; #for Containing User Information
my $userDB = "UserDB.dbm"; #the file name for holding info

# Connecting to DataBase Manager File
my $sync_dbm_obj = tie (%user_info, 'MLDBM::Sync', $userDB, O_CREAT|O_RDWR, 0640);

if(!exists $user_info{$ID})
{

$sync_dbm_obj->Lock;
$user_info{$ID} = {
Name=>$Name,
Passwd=>$Passwd 
};
$sync_dbm_obj->UnLock;


--------------------------------------------------------------------------------


but as i told you,i want to do click managements for each link and for each user.

(and for managing each user acount on each link,i wanna use the same aproach as above 
for ID and password,example)

you know,i dont know how to use the information in a Data Structure,

i mean,imagine we gathered information like,this link,user ID and previous count 
number,

all we need is to use a data structure like Hashes o Hashes and save it in a DBM(mldm) 
file.



i thought,maybe its not bad to use,

1-a general Hash like  %count_info ,and this hash contains the links,

2-and each link should also have a list of Hashes,which contains 

3-user ID and count number for each user.

%count_info{

      link#1=>{ 

                $ID#1 => 3

              $ID# 2 =>10

                $ID#3 =>12

                }

      link#2=>{ 

                $ID#1 => 4

                $ID# 2 =>13

                $ID#3 =>15

                }

}

but i dont know how to implement this kind of structures,its something like....a Hash 
of,Hashes of Hashes.

i tried all kinds of possibilities,but since i wanna use it along with MLDBM i dont 
know how to implement

this kind of structure.

can u please help me?

i really need your help.

thank you so much,im waiting for your reply.



Reply via email to