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
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
> 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.