in reply to Can the special underline filehandle (stat cache) be cleared?
It appears that stating a nonexistant file will clear _ and that a file test on _ will be undefined if _ is cleared. HTH$ perl -le' print defined -e _ ? "defined" : "undef"; lstat q!test.txt!; print defined -e _ ? "defined" : "undef"; lstat q!/not_a_real_file!; print defined -e _ ? "defined" : "undef"; ' undef defined undef
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can the special underline filehandle (stat cache) be cleared?
by ammon (Sexton) on Oct 04, 2006 at 03:00 UTC | |
by tye (Sage) on Oct 04, 2006 at 03:51 UTC |