backtick and system return different exit codes
On a particular linux machine when i run a program in backticks in a
perl script it gives me correct output but does not gives me a exit
code of 0(it gives -1 ) .But executing the same program with system
gives correct ouput and exit code of 0.
[my program is doing a return 0 in main ]
uname -a on the linux m/c gives this:
Linux test 2.6.9-11.ELvsmp #1 SMP Tue Jun 7 14:13:29 BST 2005 x86_64
x86_64 x86_64 GNU/Linux
Why would backticks not return correct exit code while system does for
the same program ?
Thanks in advance for any help