# phpman > perldoc > File::Spec::Functions

## NAME
    [File::Spec::Functions](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AFunctions/markdown) - portably perform operations on file names

## SYNOPSIS
            use [File::Spec::Functions](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AFunctions/markdown);
            $x = catfile('a','b');

## DESCRIPTION
    This module exports convenience functions for all of the class methods provided by [File::Spec](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec/markdown).

    For a reference of available functions, please consult [File::Spec::Unix](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AUnix/markdown), which contains the
    entire set, and which is inherited by the modules for other platforms. For further information,
    please see [File::Spec::Mac](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AMac/markdown), [File::Spec::OS2](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AOS2/markdown), [File::Spec::Win32](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AWin32/markdown), or [File::Spec::VMS](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AVMS/markdown).

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

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

## SEE ALSO
    [File::Spec](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec/markdown), [File::Spec::Unix](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AUnix/markdown), [File::Spec::Mac](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AMac/markdown), [File::Spec::OS2](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AOS2/markdown), [File::Spec::Win32](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AWin32/markdown),
    [File::Spec::VMS](https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AVMS/markdown), [ExtUtils::MakeMaker](https://www.chedong.com/phpMan.php/perldoc/ExtUtils%3A%3AMakeMaker/markdown)

