If you've reached for this module, it's very likely you're not using Perl 6's IO routines correctly.
You're not meant to use $*SPEC directly. It merely contains the OS-specific type used by
IO routines. Use .parent, .child, and other methods on IO::Path objects instead.
SPEC::Func - Import $*SPEC methods as functions
use SPEC::Func <dir-sep splitdir>;
say join dir-sep, map &flip, splitdir 'foo/bar/ber';
# OUTPUT:
# oof/rab/reb use SPEC::Func <dir-sep splitdir>; # export dir-sep and splitdirSpecify the subs you want to import on the use line.
canonpath dir-sep curdir updir curupdir rootdir devnull basename extension
tmpdir is-absolute path splitpath join catpath catdir splitdir catfile
abs2rel rel2abs split selectAt the time of this writing, the above subroutines can be exported, however,
the actual list is derived directly from the methods provided by $*SPEC.
If you use SPEC::Func; without specifying what to import, the error
message will indicate what functions are available for importation.
Fork this module on GitHub: https://github.com/zoffixznet/perl6-SPEC-Func
To report bugs or request features, please use https://github.com/zoffixznet/perl6-SPEC-Func/issues
Zoffix Znet (http://zoffix.com/)
You can use and distribute this module under the terms of the
The Artistic License 2.0. See the LICENSE file included in this
distribution for complete details.
The META6.json file of this distribution may be distributed and modified
without restrictions or attribution.