1Prima::sys::FS(3)     User Contributed Perl Documentation    Prima::sys::FS(3)
2
3
4

NAME

6       Prima::sys::FS - unicode-aware core file functions
7

DESCRIPTION

9       Since perl win32 unicode support for files is unexistent, Prima has its
10       own parallel set of functions mimicking native functions, ie open,
11       chdir etc. This means that files with names that cannot be converted to
12       ANSI (ie user-preferred) codepage are not visible in perl, but the
13       functions below mitigate that problem.
14
15       This module exports the unicode-aware functions from "Prima::Utils" to
16       override the core functions. Read more in "Unicode-aware file system
17       functions" in Prima::Utils.
18
19   SYNOPSIS
20         use Prima::sys::FS;
21
22         my $fn = "\x{dead}\x{beef};
23         if ( _f $fn ) {
24            open F, ">", $fn or die $!;
25            close F;
26         }
27         print "ls: ", getdir, "\n";
28         print "pwd: ", getcwd, "\n";
29

API

31       The module exports by default three groups of functions:
32
33       These are described in "API" in Prima::Utils:
34
35         chdir chmod getcwd link mkdir open rename rmdir unlink utime
36         getenv setenv stat access getdir
37         opendir closedir rewinddir seekdir readdir telldir
38
39       The underscore-prefixed functions are same as the ones in "-X" in
40       perlfunc (all are present except -T and -B ).
41
42         _r _w _x _o _R _W _X _O _e _z _s _f _d _l _p _S _b _c _t _u _g _k _M _A _C
43
44       The functions that are implemented in the module itself:
45
46       abs_path
47           Same as "Cwd::abs_path".
48
49       glob PATTERN
50           More or less same as "CORE::glob" or "File::Glob::glob".
51
52       lstat PATH
53           Same as "CORE::lstat"
54

AUTHOR

56       Dmitry Karasik, <dmitry@karasik.eu.org>.
57

SEE ALSO

59       Prima::Utils, Win32::Unicode.
60
61
62
63perl v5.36.0                      2023-03-20                 Prima::sys::FS(3)
Impressum