On Mon, 2008-02-25 at 18:33 +0000, Andy Armstrong wrote: > See also Windows, VMS, any other machine that doesn't have which.
... I was just looking at which %Config vars you need to check ... I left VMS before I started perl and I havn't made it to Windows yet. You could use something like: sub which { $p = shift; for $d ( split /:/, $ENV{PATH} ) { -x "$d/$p" and last; } "$d/$p"; } on windows (with the correct value for ':' in the split and the correct path separator for '/'). You still need to figure out whether to check 'ccversion' or 'gccversion' to when $Config{cc} can be either 'cc' or 'gcc' and also how to find the '--version' string on windows ... but it looks doable. -- --gh