Probably because the open failed if the file does not exist or is elsewhere. Testing for the success of open is a useful thing to do.
And, -X accepts both the filehandle or the filename.
In reply to Re^3: File Test operators, option -T
by hdb
in thread File Test operators, option -T
by virtuemart2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |