in reply to Re: Parsing many files and output to one file. Pls HELP
in thread Parsing many files and output to one file. Pls HELP

Thanks. Those 2 while loops are from difference subs. I have done parsing of 6 files (parse to get the xml names & the Process time) and have it array. My program works fine for 6 files. Now If I have more than 6 files (n number of files..Unknown number) How do i dynamically name arrays say $myArray$i ? I can not read one file at a time and output it. The output file should be printed column wise. Each column in the output file will be from each file.
  • Comment on Re^2: Parsing many files and output to one file. Pls HELP

Replies are listed 'Best First'.
Re^3: Parsing many files and output to one file. Pls HELP
by moritz (Cardinal) on Nov 11, 2008 at 09:14 UTC
    Instead of naming them $myArray1, $myArray2 store them all in a common array. How that works is described in perllol and perlreftut, as well as in every good Perl book.