Dear all,
I'm writting a perl script, which should run on both Winz and Linux and might be able to load only platform-dependend modules. If I write something like this:
# supposing $linux indicates OS
if ($linux) {
use Term::ANSIColor;
} else {
#nothing
}
it still doesn't work on Winz, because the compiler searches for the module even when it's not really necessary
any ideas?
robin
I'm writting a perl script, which should run on both Winz and Linux and might be able to load only platform-dependend modules. If I write something like this:
# supposing $linux indicates OS
if ($linux) {
use Term::ANSIColor;
} else {
#nothing
}
it still doesn't work on Winz, because the compiler searches for the module even when it's not really necessary
any ideas?
robin