Category Archives: File Test Operators

“The stat preceding -l _ wasn’t an lstat”

I ran into a fatal error that I haven’t previously encountered and I couldn’t find a good explanation where I expected it. The -l file test operator can only use the virtual _ filehandle if the preceding lookup was an lstat. The file test operators, all documented under the -X entry in perlfunc, can use […]

Updates to Chapter 12, “File Test Operators”

[This post notes differences between the fifth and sixth editions.] This chapter probably doesn’t deserve an update here because almost nothing changed. Most of the updates is just make all the code examples consistent. When I added the Perl 5.10 updates for the stacked file test operators, I used a style that wasn’t quite my […]