On my system, your code produces this error:
sh: -c: line 0: unexpected EOF while looking for matching `''
Backticks interpolate like double quotes, so you need to escape the $
my @load = `ps -ef | grep neversaint | grep 'somecmnd.exe\$' | wc -l`;
In reply to Re: Quoting in Backtick
by kyle
in thread Quoting in Backtick
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |