Is this possible in any form? Doing this, perl seems to get mad and crash & burn. If I do$fh[0] = "file1"; $fh[1] = "file2"; $fh[2] = "file3"; open($fh[0], "path/to/file/$fh[0]"); while(<$fh[0]>) { ... } close($fh[0]);
It tells me that I cannot use "file1" as a filehandle. Any suggestions?while($fh[0]) { ... }
In reply to Dynamic File Handles by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |