in reply to Perl backticks and GREP?

`grep -c -H $argument \"$file\"`;
I think you want to capture the grep output into a variable:
$results = `grep -c -H $argument \"$file\"`;
See qx.