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