I have a collection of text documents(ascii file name and the heading:
my %doc_collection = (
'joe.txt' => "Joes Collection"
'john.txt' => "Johnson's Collection"
'mary.txt' => "Mary's notes"
'liz.txt' => "Liz's articles"
.........
) ;
In order to open 'ONE' ascii document, say joe's text and put that in a array named user, I would have to,
my $file = '/joe.txt';
open(FILE, "$file");
my @users = <FILE>;
close FILE;
However I have to fill up the same @users array like this with docs for multiple users instead of just one.
@users = { "Joes collection", joe.txt content goes here, "Johnsons Collection", john.txt content goes here, "marys notes" , Marys notes come here, ........}
Can somebody tell the algorithm for this?
TIA