Hello Monks, Need some help with using open command in for loop. Here is what I was trying to do : The array is populated with a list of file names : for(i=0;i<@array;i++) { open(FILE,"$array[$i]") or die " Could not open file :$!"; close(FILE); } When I run this the program just hangs and no error is thrown ? Is this the correct way ? Thanks amit
In reply to Using open in for loop by xmanamit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |