SPVM::FindBin - Locate Directory of Original Program
SPVM::FindBin is the FindBin class in SPVM language.
SPVM::FindBin
FindBin
Locates the full path to the script bin directory to allow the use of paths relative to the bin directory.
use FindBin; FindBin->init; my $Bin = FindBin->Bin; my $Script = FindBin->Script; my $RealBin = FindBin->RealBin; my $RealScript = FindBin->RealScript;
our $Bin : ro string;
The path to bin directory from where script was invoked.
our $Script : ro string;
The basename of script from which perl was invoked
our $RealBin : ro string;
"Bin" with all links resolved
our $RealScript : ro string;
"Script" with all links resolved
static method init : void ();
Initializes the "Bin" in $Bin, "Script" in $Script, "RealBin" in $RealBin, "RealScript" in $RealScript class variables.
static method again : void ();
The same as "init".
SPVM::FindBin - Github
SPVM::FindBin is the Perl's FindBin porting to SPVM.
Yuki Kimoto kimoto.yuki@gmail.com
kimoto.yuki@gmail.com
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM::FindBin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::FindBin
CPAN shell
perl -MCPAN -e shell install SPVM::FindBin
For more information on module installation, please visit the detailed CPAN module installation guide.