SPVM::File::Spec::Instance::Unix - Implementation of File::Spec::Instance for Linux/Unix/Mac
The File::Spec::Instance::Unix class of SPVM is an implementation of File::Spec::Instance for Linux/Unix/Mac.
use File::Spec::Instance::Unix; my $spec = File::Spec::Instance::Unix->new; my $file = $spec->catfile(["foo", "bar"], "a.txt"]);
File::Spec::Instance
static method new : File::Spec::Instance::Unix ();
method devnull : string ();
method rootdir : string ();
method curdir : string ();
method updir : string ();
method canonpath : string ($path : string);
method catdir : string ($dir_parts : string[]);
method catfile : string ($dir_parts : string[], $file_base_name : string);
method no_upwards : string[] ($dir_parts : string[]);
method file_name_is_absolute : int ($path : string);
method file_name_is_root : int ($path : string);
method join : string ($dir_parts : string[], $file_base_name : string);
method catpath : string ($volume : string, $directory : string, $file : string);
method splitpath : string[] ($path : string, $no_file : int = 0);
method rel2abs : string ($path : string, $base : string = undef);
method splitdir : string[] ($path : string);
method abs2rel : string ($path : string, $base : string = undef);
method path : string[] ();
method tmpdir : string ();
Yuki Kimoto kimoto.yuki@gmail.com
kimoto.yuki@gmail.com
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM::File::Spec, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::File::Spec
CPAN shell
perl -MCPAN -e shell install SPVM::File::Spec
For more information on module installation, please visit the detailed CPAN module installation guide.