At first time, when inner loop execution is over the file pointer will be in EOF. so in next time of checking While(<FILE>) this condition will get false. so it wont go inside inner while loop.
you can do any one of the following :
1. Before inner loop begins you can open file handle and at the end of inner while loop close the file handle.
2.In the beginning of the inner while loop you can make the file pointer to point to the beginning of file using 'seek'. perldoc -f seek.
In reply to Re^2: Hash/file --> doesn't seem to work
by perldesire
in thread Hash/file --> doesn't seem to work
by imrags
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |