Ultimately I want to convert about 5 gawk/awk scripts to perl, but right now just trying to understand what I percieve as a difference between gawk (version 3.1.6) and sun unix awk.
(Using or not using perl does not affect the problem.)
$cmd = "gawk -f D:\\tools\\scan_tdf.awk
print "cmd is $cmd \n";
$sts = system($cmd);
On the sun unix side the variables are getting passed through and processed, while on the DO$ side they are not.
For example corrtype is set to "ada" on sun unix side, while on the DOS side corrtype is not set or defined.
Any help appreciated.