http://www.perlmonks.org?node_id=808966

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

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 corrtype=ada FileSuffix=_pkg TDFname=sys_mma_pfd_gmeter.tdf PrefixFile=d:\\tools\\PrefixFile BusNamesFile=d:\\data\\ssi_BusNames VAXPATH=NONE DIRPATH=def"; 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.