Scripting >> Perl >> How to process the output of an operating system command

eg. DOS/windows dir command :- open(CMD,"dir |"); while(<CMD>) { # process each line using $_ } close(CMD);