File::Spec::OS2(3pm)

✨ NAME ✨

okay bestie, welcome to File::Spec::OS2 β€” methods for OS/2 file specs πŸ’… this is the File::Spec::OS2(3pm) page from the Perl Programmers Reference Guide, and yes we are getting into it.


πŸ¦‹ SYNOPSIS πŸ¦‹

you literally just need this:

require File::Spec::OS2; # Done internally by File::Spec if needed

that comment is important, bestie: it's done internally by File::Spec if needed 🫢


πŸ’… DESCRIPTION πŸ’…

go peek at File::Spec and File::Spec::Unix for the full lore. this package overrides the implementation of these methods β€” not the semantics, okay? the vibe is implementation change only πŸ”₯

Amongst the changes made for OS/2 are...

🌸 tmpdir 🌸

this one modifies the list of places temp directory information is looked for, and the list is exactly this:

$ENV{TMPDIR}
$ENV{TEMP}
$ENV{TMP}
/tmp
/

no cap, that's the whole list πŸ’–

🌈 splitpath 🌈

volumes can be drive letters or UNC sharenames (\\server\share) ✨ that's the tea.


Copyright (c) 2004 by the Perl 5 Porters. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


mwah πŸ’‹ this little page is brought to you by perl v5.42.3, dated 2026-11-03 β€” iconic, honestly πŸ‘‘

πŸ“¦ where this page comes from