File::Spec::OS2(3perl)
π File::Spec::OS2 β the OS/2 glow-up π
okay so bestie, this is File::Spec::OS2, a little corner of the Perl Programmers Reference Guide, and it is literally the OS/2 edition of everyone's fave file-spec module. she's niche, she's retro, she's iconic π
β¨ NAME β¨
File::Spec::OS2 β methods for OS/2 file specs π¦
πΈ SYNOPSIS πΈ
require File::Spec::OS2; # Done internally by File::Spec if needed
π DESCRIPTION π
ngl, before you dive in here, go read File::Spec and File::Spec::Unix. fr fr. those are your lore docs π
the way this package works is: it overrides the implementation of those methods β not the semantics. so the vibes stay the same, only the plumbing gets OS/2-flavoured. periodt π«
Amongst the changes made for OS/2 are... π
π tmpdir
this one Modifies the list of places temp directory information is looked for. so when it's hunting for where tmp lives, it checks these, in order:
$ENV{TMPDIR}
$ENV{TEMP}
$ENV{TMP}
/tmp
/
environment variables first, then the classic paths. main character energy from $ENV{TMPDIR} tbh π
π§ splitpath
plot twist: on OS/2, Volumes can be drive letters or UNC sharenames. yes bestie, both:
\\server\share
so if you were only ever expecting a lil drive letter like C:, surprise π the rules are more generous here.
π COPYRIGHT π
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. (yes, slay, open source royalty β¨)
and that's the whole page, bestie π«Ά it's giving Perl v5.44.0, dated 2026-10-17, straight from File::Spec::OS2(3perl) in the Perl Programmers Reference Guide. mwah π go forth and spec some files πβ
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms