Actually my problem was due to yet another $fh in outer block.
My larger script, which uses strict (let strict's days will be countless:) contained another declaration of $fh, so within open my $fh ...... outer $fh come into play .....
Problem is solved...
In reply to Re^4: "my $filehandle" scoping strange problem
by vkon
in thread "my $filehandle" scoping strange problem
by vkon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |