Perl Monk, Perl Meditation | |
PerlMonks |
Re: Correct way to capture command output to a file in Perl.by Laurent_R (Canon) |
on May 01, 2013 at 19:58 UTC ( [id://1031636]=note: print w/replies, xml ) | Need Help?? |
If you want to capture the output of system command, you can simply use the backticks: my @list_of_files = `ls -l`;
In Section
Seekers of Perl Wisdom
|
|