Chris Zimmerman wrote: > Obviously I am a beginner, so bear with me: > > I have an array, @customers, that has a list of names. For each > customer I need to read in a config file, $cust.morestuff.cfg which is > formatted: > > Filename-mask Upload Name Hostname > X-Type User Pass > > I need to generate something like this:
> $customer->$mask->@restofdata > ->$mask->@restofdata Skip this. Badly written code does not communicate anything. Dom't use code-ish symbols and all that garbage until you have the design logic worked out. > > > Each customer will have multiple filemasks (basically the beginning > couple of letters of the filename so I do not have to match exact > files-some contain date names) with their appropriate processing > information. I need to know the best way to get this together. Clear > as mud? Expand on this. Do it in words and sentences, please. That is the best start to an effective program. The sentences can later be easily transformed into code with minor edits. What I can gather from the above is: You have a set of customers. Don't assume at this point that it will be an array, though. For each cutomer, you wish to store data grouped by some sort of filename mask. What are the files with these masks? What kind of information do you mean by @restofdata? This last is crucial, and should not be passed off cheaply. > > > Thanks, > Chris Zimmerman I would suggest that you rework your problem description. You do not, as yet, have any arrays--they are part of the program you will write. What do you have, in existence, to start with? What do you need to do with it? Do you want to create an index, maybe? The two questions above are the crucial ones going into any programming project. What do you have to work with, and what do you need as output of the process? You will get there much faster if you know where what your destination is. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>