in reply to Re: cross platform scripts
in thread cross platform scripts

I wonder if the argument to use can simply be conditional, without needing a helper module?

use ($^O eq 'MSWIn32' ? 'MyAppWin32' : 'MyAppUnix');
I think that should work in principle, since the comparison will be done before the use. It's just a matter of checking the docs to see what the differences are between barewords and normal strings in the use/require magic.

—John