Name
SPVM::FindBin - Directory Path Where Program Is Invoked
Description
FindBin class in SPVM has method to get the absolute path of the directory where the program was invoked.
Usage
use FindBin;
my $Bin = FindBin->Bin;
my $Script = FindBin->Script;
Class Variables
Bin
our $Bin : ro string;
The absolute path of the directory where the program was invoked.
Note:
In Windows, every path separator \
in the path is replaced with /
.
Script
our $Script : ro string;
The base name of the program name.
Class Methods
init
static method init : void ();
Initializes $Bin and $Script class variables.
This method is called in INIT
block of this class.
again
static method again : void ();
The same as "init" method.
Repository
See Also
Porting
SPVM::FindBin
is a Perl's FindBin porting to SPVM.
Author
Yuki Kimoto kimoto.yuki@gmail.com
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License