Module:...ll::With(3)

✨ NAME ✨

okay so welcome to Module:...ll::With(3) πŸ’– β€” this is a User Contributed Perl Documentation page, and the module is literally Module::Install::With β€” find environnement for Module::Install. (Yes, β€œenvironnement” is exactly how the page spells it, bestie. We keep the lore intact. 🫢)

Here are the little helper checks it gives you, one by one:

πŸ’… interactive

The interactive function tests for an install that has a user present β€” or at least, one in which it is reasonable for us to present prompts and other similar types of things. πŸ‘€

Returns true if in an interactive environment, or false otherwise. Simple as that, periodt.

πŸ§ͺ automated_testing

Are we currently running in an automated testing environment, such as CPAN Testers? πŸ€–

This is primarily a cleaner and more human-readable equivalent of checking $ENV{AUTOMATED_TESTING} yourself, but may be improved in line with best practices at a later date.

πŸš€ release_testing

Are we currently running in an release testing environment? That is, are we in the process of running in a potential highly-intensive and high dependency bloat testing process prior to packaging a module for release. 😭πŸ”₯

This is primarily a cleaner and more human-readable equivalent of checking $ENV{RELEASE_TESTING} yourself, but may be improved in line with best practices at a later date.

πŸͺŸ win32

The win32 function tests if the Makefile.PL is currently running in a native Microsoft Windows Perl, such as ActivePerl or Strawberry Perl. πŸ“

This is primarily a cleaner and more human-readable equivalent of checking $^O eq 'MSWin32' yourself, but may be improved in line with best practices at a later date.

🌈 winlike

The winlike function tests if the Makefile.PL is currently running in a Microsoft Windows Perl, under either cygwin or a native Win32 Perl. πŸ’»

This is primarily a cleaner and more human-readable equivalent of checking $^O eq 'MSWin32' or $^O eq 'cygwin' yourself, but may be improved in line with best practices at a later date.


πŸ‘€ SEE ALSO πŸ‘€

Module::Install β€” that’s the one, bestie. πŸ’–

πŸ’Œ AUTHORS πŸ’Œ

Adam Kennedy <adamk@cpan.org> πŸŽ€

Copyright 2007 - 2012 Adam Kennedy.

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

The full text of the license can be found in the LICENSE file included with this module.


mwah πŸ’‹ β€” cute little sign-off check: this page is sourced from perl v5.42.0, dated 2023-04-29. Bye bestie, go be iconic with your environment checks 🫢✨

πŸ“¦ where this page comes from