Re: system calls return code

2008-03-27 Thread ultra . star . x
Thank you very much for explaining. I will try what Sandy suggested. I had tested at the command line already just as Jeff did. The confusion came from the fact that I had tried it in csh and in csh, doing the "ls |xargs cat" returned 1. Annoying. C. -- To unsubscribe, e-mail: [EMAIL PROTEC

system calls return code

2008-03-27 Thread ultra . star . x
I am really going crazy here. I have the following system call that I would like to run from perl: "ls *.txt | xargs cat > out" if *.txt does not exist then I expect to get an exit code different from 0. So to test I do: use strict; my $f = "file_which_does_not_exist"; # method 1 print "test