How do I get the output of an external command in Perl?

Viewed 78706

I want to have output of Windows command-line program (say, powercfg -l) written into a file which is created using Perl and then read the file line by line in a for loop and assign it to a string.

7 Answers
Related