How do I get the output of an external command in Perl?
Asked 2009-09-25T14:09:22.147
24
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.