Note $file is subject to shell-escaping rules
Easily handled:
my $file = '/path/to/file'; my $output = `/bin/wc -l \Q$file\E`;
In reply to Re^4: system command
by ikegami
in thread system command
by megaurav2002
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |