File::Spec::OS2(3pm) Perl Programmers Reference Guide File::Spec::OS2(3pm)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#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](#tmpdir)

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

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

[splitpath](#splitpath)

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

# [COPYRIGHT](#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.

2026-10-26 perl v5.44.0

---

Document: File::Spec::OS2(3pm) from perl 5.44.0-r3 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
