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 (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