---
name: "File::Spec::OS2"
section: "3p"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["openbsd"]
url: "https://new.carta.tech/File::Spec::OS2"
---

# File::Spec::OS2(3p)

methods for OS/2 file specs

## NAME

File::Spec::OS2 - methods for OS/2 file specs

## SYNOPSIS

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

## DESCRIPTION

See File::Spec and File::Spec::Unix.  This package overrides the implementation of these methods, not the semantics.

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

- tmpdir

  Modifies the list of places temp directory information is looked for.

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

- splitpath

  Volumes can be drive letters or UNC sharenames (\\\\server\\share).

## 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.
