Perl 6 module: import $*SPEC methods as functions
Perl6
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples First full commit Aug 29, 2016
lib/SPEC
t
.gitignore
.travis.yml First full commit Aug 29, 2016
LICENSE
META6.json
README.md

README.md

Build Status

⚠️⚠️⚠️ STOP ⚠️⚠️⚠️ ---READ--- ⚠️⚠️⚠️ STOP ⚠️⚠️⚠️

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.

NAME

SPEC::Func - Import $*SPEC methods as functions

SYNOPSIS

    use SPEC::Func <dir-sep splitdir>;
    say join dir-sep, map &flip, splitdir 'foo/bar/ber';

    # OUTPUT:
    # oof/rab/reb

EXPORTS

    use SPEC::Func <dir-sep splitdir>; # export dir-sep and splitdir

Specify the subs you want to import on the use line.

AVAILABLE SUBS

canonpath dir-sep curdir updir curupdir rootdir devnull basename extension
tmpdir is-absolute path splitpath join catpath catdir splitdir catfile
abs2rel rel2abs split select

At 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.


REPOSITORY

Fork this module on GitHub: https://github.com/zoffixznet/perl6-SPEC-Func

BUGS

To report bugs or request features, please use https://github.com/zoffixznet/perl6-SPEC-Func/issues

AUTHOR

Zoffix Znet (http://zoffix.com/)

LICENSE

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.