in reply to
How to write a perl script to work on many OS(s)
As well as File::Spec you might also want to take a look at Path::Class. It's not core, but has a much saner API in my opinion.
Alternative e.g. Carob
Results (97 votes),