/perl6-file-which

Perl 6 implementation of the which utility as an API

Primary LanguagePerl6Artistic License 2.0Artistic-2.0

File::Which Build Status

This is a Perl 6 port of https://metacpan.org/pod/File::Which.

File::Which finds the full or relative paths to an executable program on the system. This is normally the function of which utility which is typically implemented as either a program or a built in shell command. On some unfortunate platforms, such as Microsoft Windows it is not provided as part of the core operating system.

This module provides a consistent API to this functionality regardless of the underlying platform.

use File::Which;

# All perl executables in PATH
say which('perl', :all);

# First executable in PATH
say which('perl');

Installation

To install it using Panda (a module management tool bundled with Rakudo Star):

$ panda update
$ panda install File::Which

Testing

To run tests:

$ prove -e "perl6 -Ilib"

Author

Perl 6 port:

Perl 5 version:

License

Artistic License 2.0