nlafferty has asked for the wisdom of the Perl Monks concerning the following question:
The amount contained in each array for my application is unknown, but there is alway a matching time and duty for each name.@name = ("tim", "tom", "jon"); @time = ("5:00", "6:00", "7:00") ; @duty = ("floors", "urinals", "windows");
I say I need to use a loop to do this because that is the only solution that I see. Perhaps an eagle eye can point out some other possibilities. Not too much to it. Just something that I know I should learn how to do. Thankstim is on floor duty at 6:00 tom is on urinals duty at 7:00 jon is on windows duty at 8:00 (windows duty..harsh, i know)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Arrays and Loops
by screamingeagle (Curate) on Feb 15, 2002 at 17:33 UTC | |
|
Re: Arrays and Loops
by dragonchild (Archbishop) on Feb 15, 2002 at 17:57 UTC | |
|
Re: Arrays and Loops
by Masem (Monsignor) on Feb 15, 2002 at 17:59 UTC | |
|
Re: Arrays and Loops
by derby (Abbot) on Feb 15, 2002 at 17:46 UTC | |
|
Re: Arrays and Loops
by ignatz (Vicar) on Feb 15, 2002 at 17:34 UTC | |
|
Re: Arrays and Loops
by nlafferty (Scribe) on Feb 15, 2002 at 23:15 UTC |