Try the following Code Snip:
my @cmd = `java SSLTest`;
my %hash;
chomp @cmd;
foreach (@cmd) {
if (/ - /) {
($key, $value) = split(/ - /);
$hash{$key} = $value;
}
if (/: /) {
($key, $value) = split(/: /);
looks like end of line charactors are getting mucked
up. i'm not sure what cmd.exe does, but it is more
forgiving then other windows programs. try doing a
capture of ipconfig.exe and you will see the same
problem. i don't have my code on me to see what i
did, but i think this should do the tric
Dear All,
Hope you are all having a great
day.
I have a problem. I m running a java
program through perl like this :
$cmd = 'java SSLTest';
It returns output like this :
Using ClearCommerce SSL Java API Version:
release-3-8-3-17 Shipping: 10.0 Tax:
0.0 Time - Sat Jun 22