Hi, all, I am a Perl newbie.
I need to read multiple files in a loop and read each file into an array. I wrote the following code, but it doesn't work. Basically my question is how to assign a different array in the loop? Can anybody help? Thanks a lot!
for($x=0;$x<10;$x++){
open(INPUT, "$Array[$x]") || die "Cannot open : $! \n";
@contents_$x = <INPUT>;
close(INPUT);
}