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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 gawk vs. Unix awk
by ikegami (Patriarch) on Nov 24, 2009 at 00:02 UTC | |
by gibsonca (Beadle) on Nov 30, 2009 at 14:48 UTC | |
by gibsonca (Beadle) on Nov 30, 2009 at 15:28 UTC |