Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am a total newby!
How would I go about populating an array from a flat file.
I have a file like this
as a value in the array and
How would I go about populating an array from a flat file.
I have a file like this
I would like to puteggsalad pickles eggs salad dressing sandwich bread meat tomato
eggsalad pickles eggs salad dressing
as a value in the array and
As another value. The problem is that I am to new to do this on my own. The actual file is hundreds of entries long with each entry separated by a whitespace line.There are other things that I need to do to each array ,but I think I can do the rest myself.Can someone please help me. Thank Yousandwich bread meat tomato
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Populating an array
by Adam (Vicar) on Mar 28, 2001 at 02:12 UTC | |
by sierrathedog04 (Hermit) on Mar 28, 2001 at 04:13 UTC | |
by Adam (Vicar) on Mar 28, 2001 at 04:27 UTC | |
Re: Populating an array
by c-era (Curate) on Mar 28, 2001 at 01:57 UTC | |
Re: Populating an array
by boo_radley (Parson) on Mar 28, 2001 at 01:53 UTC | |
Re: Populating an array
by mr.nick (Chaplain) on Mar 28, 2001 at 02:22 UTC | |
Re: Populating an array
by jeroenes (Priest) on Mar 28, 2001 at 02:43 UTC | |
Re: Populating an array
by strredwolf (Chaplain) on Mar 28, 2001 at 02:29 UTC |
Back to
Seekers of Perl Wisdom