http://qs321.pair.com?node_id=570586

rsriram has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am working with Win32 and I want to execute a external DOS program. From the Perl manual, I found that the system command needs to be used. For example, if I have to get the files in a particular folder listed, I used a code

$cmd = system("dir"); print $cmd;

On executing the code, it returns a value '65280' on the screen. I don't know where this came from. Can anyone tell me how to run a external command and get the desired output on the screen. And also, if possible, what is this 65280??