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.use ($^O eq 'MSWIn32' ? 'MyAppWin32' : 'MyAppUnix');
—John
In reply to Re: Re: cross platform scripts
by John M. Dlugosz
in thread cross platform scripts
by timbu
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |