my $file = '/path/to/file'; my $output = `/bin/wc -l \Q$file\E`;