in reply to Does anyone use underscore pseudo-filehandle?
Here is a simple script to illustrate the problem:
Create a simple file named test.bat and run above script. It prints only this - not what I would expect#! perl -w use strict; my $file = 'test.bat'; print "1. $file is a text file, executable\n" if -T $file && -x _; print "2. $file is an executable text file\n" if -x $file && -T _;
See also this node and the replies: Problem with filetest -x _ on Win2k AS Perl build 626.2. test.bat is an executable text file
|
|---|