in reply to How to write a perl script to work on many OS(s)
For the larger issue of making the program work in multiple OSes, you might want to read perlport.