Re: I need help writing a hash of an array

2002-07-02 Thread Ramprasad A Padmanabhan
Coppi Nikula wrote: >>I need to write a script that is reading line by line through a file and put it into >a hash of an array that looks like this: >> >>This is just an example, so it looks like garbage. This is what I need to capture >in memory and also if I was to print it, it needs to look

RE: I need help writing a hash of an array

2002-07-02 Thread Nikola Janceski
my closest guess is that what is in CAPS is to be the key and what follows is to be pushed on to the array of the hash value. suppose you input below is in file.txt: __CODE__ use strict; use warnings; open(FILE, "){ chomp; if(/^[A-Z0-9]+$/){ $key = $_; } e

RE: I need help writing a hash of an array

2002-07-02 Thread Shishir K. Singh
> I need to write a script that is reading line by line through a file and put it into >a hash of an array that looks like this: > > This is just an example, so it looks like garbage. This is what I need to capture >in memory and also if I was to print it, it needs to look like this in a list.