If you want to store the output in a variable then use backticks.
my $var = `echo This is my output.`;
or you can use system, which just returns the return value of the command:
my $returnvalue = system('ping -a 10.0.0.1');
-----Original Message-----
From: Rob
To: [EMAIL PROTECTED]
Sent: 4/9/02 3:46 PM
Subject: Execute .exe or .bat files from perl??
Anyone know how to call a .exe or .bat file from a perl script?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------------------
This email may contain confidential and privileged
material for the sole use of the intended recipient.
If you are not the intended recipient, please contact
the sender and delete all copies.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]