FILE::SPEC::CYGWIN(3pm)
π NAME π
File::Spec::Cygwin - methods for Cygwin file specs. Yup bestie, this is the File::Spec::Cygwin(3pm) page from the Perl Programmers Reference Guide, and it's giving very specific Cygwin file-spec realness. π¦
πΈ SYNOPSIS πΈ
require File::Spec::Cygwin; # Done internally by File::Spec if needed
π¦ DESCRIPTION π¦
See File::Spec and File::Spec::Unix, okay? This package overrides the implementation of these methods, not the semantics. The implementation changes; the meaning stays iconic. π
This module is still in beta. Cygwin-knowledgeable folks are invited to offer patches and suggestions, fr fr.
π canonpath
Any "\" (backslashes) are converted to "/" (forward slashes), and then File::Spec::Unix canonpath() is called on the result. Slash-ify first, then let Unix handle it. β¨
π¦ file_name_is_absolute
True is returned if the file name begins with "drive_letter:", and if not, File::Spec::Unix file_name_is_absolute() is called. So it peeks for that drive-letter situation first, then hands it off to Unix if that's not it. π«Ά
π tmpdir (override)
Returns a string representation of the first existing directory from the following list:
$ENV{TMPDIR}
/tmp
$ENV{'TMP'}
$ENV{'TEMP'}
C:/temp
π¨ Taint-mode caveat: if running under taint mode, and if the environment variables are tainted, they are not used. No cap.
π case_tolerant
Override Unix. Cygwin case-tolerance depends on managed mount settings and as with MsWin32 on GetVolumeInformation() $ouFsFlags == FS_CASE_SENSITIVE, indicating the case significance when comparing file specifications. Default: 1.
π COPYRIGHT π
Copyright (c) 2004,2007 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.
Mwah π β this page is File::Spec::Cygwin(3pm) from perl v5.42.3, dated 2026-11-03. Go forth and Cygwin responsibly, bestie. π
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms