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??
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Executing a external command
by shmem (Chancellor) on Aug 31, 2006 at 12:05 UTC | |
Re: Executing a external command
by borisz (Canon) on Aug 31, 2006 at 11:57 UTC | |
Re: Executing a external command
by cdarke (Prior) on Aug 31, 2006 at 12:07 UTC | |
Re: Executing a external command
by izut (Chaplain) on Aug 31, 2006 at 11:58 UTC | |
Re: Executing a external command
by mantra2006 (Hermit) on Aug 31, 2006 at 12:20 UTC | |
Re: Executing a external command
by ww (Archbishop) on Aug 31, 2006 at 15:04 UTC | |
by reneeb (Chaplain) on Aug 31, 2006 at 15:41 UTC | |
by ww (Archbishop) on Sep 01, 2006 at 14:48 UTC |
Back to
Seekers of Perl Wisdom