in reply to How to open file inside loops with file names generated using an array?
Hello skooma,
choroba got in ahead of me, but another possibility is that your nested loops are generating more filenames than you actually have files. In the example given, your array @data1 will contain 1.1 and 1.2, and the array @data2 will contain 2.1 and 2.2. But your nested loops will then generate four file names:
file_1.1_2.1.txt file_1.1_2.2.txt file_1.2_2.1.txt file_1.2_2.2.txt
Do all of these files exist in the folder? If not, that would explain the “No such file” errors.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|