I am trying to execute this in my perl script
my $command = `ps -p $pidnumber | wc -l`;
but when I run the script it show me something like this:
sh: -c: line 1: syntax error near unexpected token `|'
sh: -c: line 1: ` | wc -l'
Which would it may to be the error?