I've been asked to write a perl script to run on various flavours of UNIX which will include disc and filesystem manipulation. To me it makes sense to have operating system specific modules to perform the disc import/export and filesystem manipulations and have the main use whichever module is relevant to the particular operating system (with the various operating system specific modules exporting the same function and variable names).
The question is how can I execute some code to identify the operating system and then call the relevant use statement, as I understand use is a compile time directive ?