Data::Hopen::Util::Filename - functions for manipulating filenames
Nothing is exported by default. Each function is available via an OO interface or a procedural interface.
Return the given filename, with the extension of an object file added. Usage:
Data::Hopen::Util::Filename::obj(filename[, -strip=>true]); # procedural Data::Hopen::Util::Filename->new->obj(fn[, -strip=>true]); # OO
If -strip => <truthy> is given, strip any existing extension first.
-strip => <truthy>
Return the given filename, with the extension of an executable file added. Usage and options are the same as "obj".
Return the given filename, with the extension of a library file added. Usage and options are the same as "obj".
Create a new instance for the OO interface. For example:
my $FN = Data::Hopen::Util::Filename->new; say $fn->obj('hello'); # e.g., "hello.o" or "hello.obj"
To install Data::Hopen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Hopen
CPAN shell
perl -MCPAN -e shell install Data::Hopen
For more information on module installation, please visit the detailed CPAN module installation guide.