Aimal Pashtoonmal wrote:

> Hello,
>
> I have three files, for two different cites. The first file contains
> names of men with their faves, in columns. The second file is the same
> but for their partner. The third file is a list of similar partners
> (partner selection based on data fed into a perl script):
>
> FILE_1 and FILE_2 column headings:
>
> NAMEtabAGEtabFAVE MOVIEtabFAVE ACTOR(IN THAT MOVIE)tabCHOICE OF NICK
> NAME(FOR THAT ACTOR)tabGUESS LENGTH OF ACTING CAREER(STARTtabEND)tabFAVE
>
> HOL DESTN.
>
> FILE_1 data:
> DAVEtab36tabBATMANtabJ.NICKELSONtabWALL FILLER FACEtab38tab2003tabIBIZA
>
> FILE_2 data:
> JOtab28tabGIJANEtabD.MOOREtabTRACEYtab89tab2003tabIBIZA
>
> FILE_3 data:
> DAVEtabJO
>
> EG. OF TYPE OF DATA I INTEND TO EXTRACT: for each set of partners i am
> trying count the number of times the holiday desnn. is the same and
> different; for each person in file 1,  how many times does the seclected
>
> partner  choose the same actor, and then find the averaage length of
> career.
>
> The problem I have is since I am not well versed with perl, which data
> structure do I use, I am not finding this easy. CAN ANYONE HELP PLEASE?
> All I need is to be pointed in the right direction.
> ALL WILL BE APPRECIATED.
>
> Cheers, aim.

Hi Aimal,

Can you post any of what you have tried to do to sort out the issues here.  Choosing 
appropriate data structures actually comes in a later part of the process, after you 
have decided what you want to do with the information in general terms.

If you wish to program, you must take responsibility for examining the data, and 
planning a strategy for how to use it.  No one else can do that for you.

I can give you a couple hints:

The first line of the two data files contains meta-information.  You will want to 
handle this separately, and use the information contained there to set up the 
structure to hold the actual data.  This might suggest a hash as the overall 
structure, using the column names as keys.

Anyway, try to make at least some start on this on your own, and you will find more 
help here.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to