in reply to Easing cross-platform scripting

G'day White Raven,

Welcome to the Monastery.

What you're looking for sounds very similar to what File::Spec does.

That's a core module, so you should already have the source code on your system. Alternatively, you can find it all online: File::Spec (CPAN) has links to the source code as well as all the various File::Spec::<os> modules.

— Ken