in reply to Re^2: Help with file test operators
in thread Help with file test operators
the special filehandle _ doesn't seem to be documented in perlvar , don't know why.Hmm, this may be nitpicking, but I am not sure it can be called a "special filehandle", it is not really a filehandle. IMHO, it is more like a filename (and file path). But I do not know what to call it either. Perhaps we could call this a special alias to the last file submitted to a file test operator or to stat.
One thing is sure. I have been knowing about this possibility for several years, and I usually recognize it when I see it, but whenever I would need to use it (well, not so often, but it happens once in a while), I don't remember what it was exactly, and I spend time finding again the right piece of documentation. The documentation could really be improved on this, with the right cross-references to make it easier to find.
The good thing about this thread is that I believe I'll remember it from now on.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Help with file test operators
by LanX (Saint) on Mar 26, 2015 at 22:54 UTC | |
Re^4: Help with file test operators
by BillKSmith (Monsignor) on Mar 27, 2015 at 03:40 UTC | |
by Anonymous Monk on Mar 27, 2015 at 05:55 UTC | |
by RonW (Parson) on Mar 27, 2015 at 17:18 UTC |