Module:...ll::Can(3)

πŸ¦‹ Module::Install::Can(3) πŸ¦‹

okay bestie, welcome to a User Contributed Perl Documentation page for Module::Install::Can. it's literally utility functions for capability detection, and it's here to make your custom smarter installers way less of a whole thing. 🫢


✨ NAME ✨

Module::Install::Can β€” Utility functions for capability detection πŸ’–

🌸 DESCRIPTION 🌸

Module::Install::Can contains a number of functions for authors to use when creating customised smarter installers. The functions simplify standard tests so that you can express your dependencies and conditions much more simply, and make your installer much easier to maintain. πŸŽ€


πŸ’… COMMANDS πŸ’…

πŸŽ€ can_use πŸŽ€

can_use('Module::Name');
can_use('Module::Name', 1.23);

The can_use function tests the ability to load a specific named module. Currently it will also actually load the module in the process, although this may change in the future. πŸ‘€

Takes an optional second param of a version number. The currently installed version of the module will be tested to make sure it is equal to or greater than the specified version. βœ…

Returns true if the module can be loaded, or false (in both scalar or list context) if not. no cap.

πŸ–₯️ can_run πŸ–₯️

can_run('cvs');

The can_run function tests the ability to run a named command or program on the local system.

Returns true if so, or false (both in scalar and list context) if not. πŸ’…

πŸ”§ can_cc πŸ”§

can_cc();

The can_cc function tests the ability to locate a functioning C compiler on the local system. Returns true if the C compiler can be found, or false (both in scalar and list context) if not. πŸ› οΈ

🧚 can_xs 🧚

can_xs();

The can_xs function tests for a functioning C compiler and the correct headers to build XS modules against the current instance of Perl. ✨


πŸ™ˆ TO DO πŸ™ˆ

Currently, the use of a can_foo command in a single problem domain (for example can_use) results in the inclusion of additional functionality from different problem domains (for example can_run). 😭

This module should ultimately be broken up, and the individual functions redistributed to different domain-specific extensions.


πŸ‘‘ AUTHORS πŸ‘‘

  • Audrey Tang <autrijus@autrijus.org>
  • Adam Kennedy <adamk@cpan.org>

πŸ”₯ SEE ALSO πŸ”₯

  • Module::Install
  • Class::Inspector

Copyright 2006 - 2012 Audrey Tang, Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html> πŸ’œ


mwah πŸ’‹ this page came from perl v5.42.0 and is dated 2023-04-29, and it's giving User Contributed Perl Documentation realness. periodt. πŸŽ€

πŸ“¦ where this page comes from