File::Spec::Functions(3p)

File::Spec::Functions3p

Portably perform operations on file names

Usage

        use File::Spec::Functions;
        my $x = catfile('a', 'b');

Overview

This module exports convenience functions for all of the class methods provided by File::Spec.

For a reference of available functions, please consult File::Spec::Unix, which contains the entire set, and which is inherited by the modules for other platforms. For further information, please see File::Spec::Mac, File::Spec::OS2, File::Spec::Win32, or File::Spec::VMS.

Exports

The following functions are exported by default.

        canonpath
        catdir
        catfile
        curdir
        rootdir
        updir
        no_upwards
        file_name_is_absolute
        path

The following functions are exported only by request.

        devnull
        tmpdir
        splitpath
        splitdir
        catpath
        abs2rel
        rel2abs
        case_tolerant

All the functions may be imported using the ":ALL" tag.

Releases

32 releases since OpenBSD 5.0; the text changed 21 times.

  1. 5.0–5.3
  2. 5.4–5.5
  3. 5.6
  4. 5.7
  5. 5.8
  6. 5.9
  7. 6.0
  8. 6.1
  9. 6.2
  10. 6.3–6.4
  11. 6.5
  12. 6.6
  13. 6.7
  14. 6.8
  15. 6.9–7.2
  16. 7.3
  17. 7.4
  18. 7.5
  19. 7.6
  20. 7.7–7.8
  21. 7.9
  22. 8.0

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's man source.