R
Rong Hu
I'm writing a tool to auto-detect untranslated messags in M-code. I have two
qestions to make it work on PC (DOS command window).
1. I use "find" to collect all M-code. $_ should be the same as
$File::Find::name when I use "no_chdir => 1".
On Unix, it's true. Both give fullpathes. However, on PC, $_ gives relative
pathes while $File::Find::name gives fullpathes.
2. I'm using either slash or backslash [/\\] as a file separator to find the
existing translation file. Is there a better way?
Btw, I found a useful function to glue path and filename together based on
the running platform. It's File::Spec::catfile.
Thanks in advance,
Rong
qestions to make it work on PC (DOS command window).
1. I use "find" to collect all M-code. $_ should be the same as
$File::Find::name when I use "no_chdir => 1".
On Unix, it's true. Both give fullpathes. However, on PC, $_ gives relative
pathes while $File::Find::name gives fullpathes.
2. I'm using either slash or backslash [/\\] as a file separator to find the
existing translation file. Is there a better way?
Btw, I found a useful function to glue path and filename together based on
the running platform. It's File::Spec::catfile.
Thanks in advance,
Rong