FILE::SPEC::FUNCTIONS(3pm)

πŸ’– File::Spec::Functions πŸ’–

okay so this is the File::Spec::Functions page β€” manual page File::Spec::Functions(3pm), from the Perl Programmers Reference Guide. It's giving portable file name operations, and bestie, that's iconic. πŸ¦‹

🌸 NAME 🌸

File::Spec::Functions β€” portably perform operations on file names ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸ’… DESCRIPTION πŸ’…

This module exports convenience functions for all of the class methods provided by File::Spec. Slay. Periodt. πŸ’…

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. iykyk 🫢

πŸŽ€ Exports πŸŽ€

The following functions are exported by default. These are the freebies, no extra import behavior needed:

  • canonpath
  • catdir
  • catfile
  • curdir
  • rootdir
  • updir
  • no_upwards
  • file_name_is_absolute
  • path

The following functions are exported only by request. Like, you gotta ask for these cuties:

  • devnull
  • tmpdir
  • splitpath
  • splitdir
  • catpath
  • abs2rel
  • rel2abs
  • case_tolerant

All the functions may be imported using the :ALL tag. That's the β€œgive me everything” vibe check. πŸ’―

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
  • File::Spec::Unix
  • File::Spec::Mac
  • File::Spec::OS2
  • File::Spec::Win32
  • File::Spec::VMS
  • ExtUtils::MakeMaker

that's the whole page, bestie β€” signing off with perl v5.42.3, dated 2026-11-03, and page name File::S...unctions(3pm). mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from