I wrote a piece of code named as "cy_find" like this:
use File::Find; .... .... find (\&wanted, "$target_path"); sub wanted { open temp_file_cy, "$File::Find::name; print "hello 1\n" if (-r tep_file_cy); close temp_file_cy; }
it is strange for some files the linux returns :
"-r on closed filehandle temp_file_cy at ../cy_find line 87"
can anybody tell me why I was operating on "closedfilehandle"? thanks
In reply to question n File::Find by skyworld_chen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |