Re: When a File Exists and is Empty

2014-09-11 Thread Martin G. McCormick
Shawn H Corey writes: > Yes, Perl does follow the shell when it comes to file tests. See > `perldoc -f -X > > Also, you can use `-s` instead of `! -z`. Thank you. That's very close to the test -s clause in shell scripting. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For ad

Re: When a File Exists and is Empty

2014-09-11 Thread Shawn H Corey
On Thu, 11 Sep 2014 12:02:30 -0500 "Martin G. McCormick" wrote: > I was checking to see how in perl can one quickly test > for a file which exists but is empty and found an example so I > wrote the following code which seems to work beautifully but it > looks a little different compared to

When a File Exists and is Empty

2014-09-11 Thread Martin G. McCormick
I was checking to see how in perl can one quickly test for a file which exists but is empty and found an example so I wrote the following code which seems to work beautifully but it looks a little different compared to some things I have seen so I am asking whether it could have unintended