Help for this page
open IN, "cmd args |" or die $!; while( <IN> ) { # do something with each line of input } close IN;