bazi has asked for the wisdom of the Perl Monks concerning the following question:
Any suggestins are very mcuh appreciated. Thanks Bazimy @combinedData; my @currentFile; my @filesList = <*>; foreach my $file (@filesList) { open(F, "file.txt") or die("Unable to open file"); @currentFile = <F>; # HOW TO COMBINE IT INTO @combinedData ? # if I do it thru a reference the content # will change in the next loop when I modify @currentFile # again ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: store multiple files in multidimensional array
by toolic (Bishop) on Mar 18, 2012 at 21:19 UTC | |
|
Re: store multiple files in multidimensional array
by repellent (Priest) on Mar 19, 2012 at 02:06 UTC | |
|
Re: store multiple files in multidimensional array
by Anonymous Monk on Mar 19, 2012 at 09:05 UTC |