Backquotes return whatever the called program printed to STDOUT. System returns just the exit status.
Your examples don't do anything with the return value. If that's intended, system should be preferred. You can check for errors in either function by looking at $? , the CHILD_ERROR variable.
After Compline,
Zaxo
In reply to Re: difference bteween using back quote and sytem command in perl programming
by Zaxo
in thread difference bteween using back quote and sytem command in perl programming
by Tony1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |