Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Devel-Hide-0.0015-1.7 RPM for noarch

From OpenSuSE Ports Tumbleweed for noarch

Name: perl-Devel-Hide Distribution: openSUSE Tumbleweed
Version: 0.0015 Vendor: openSUSE
Release: 1.7 Build date: Thu Feb 1 01:55:12 2024
Group: Unspecified Build host: i04-ch2a
Size: 19891 Source RPM: perl-Devel-Hide-0.0015-1.7.src.rpm
Packager: http://bugs.opensuse.org
Url: https://metacpan.org/release/Devel-Hide
Summary: Forces the unavailability of specified Perl modules (for testing)
Given a list of Perl modules/filenames, this module makes 'require' and
'use' statements fail (no matter the specified files/modules are installed
or not).

They _die_ with a message like:

    Can't locate Module/ToHide.pm in @INC (hidden)

The original intent of this module is to allow Perl developers to test for
alternative behavior when some modules are not available. In a Perl
installation, where many modules are already installed, there is a chance
to screw things up because you take for granted things that may not be
there in other machines.

For example, to test if your distribution does the right thing when a
module is missing, you can do

    perl -MDevel::Hide=Test::Pod Makefile.PL

forcing 'Test::Pod' to not be found (whether it is installed or not).

Another use case is to force a module which can choose between two
requisites to use the one which is not the default. For example,
'XML::Simple' needs a parser module and may use 'XML::Parser' or 'XML::SAX'
(preferring the latter). If you have both of them installed, it will always
try 'XML::SAX'. But you can say:

    perl -MDevel::Hide=XML::SAX script_which_uses_xml_simple.pl

NOTE. This module does not use Carp. As said before, denial _dies_.

This module is pretty trivial. It uses a code reference in @INC to get rid
of specific modules during require - denying they can be successfully
loaded and stopping the search before they have a chance to be found.

There are three alternative ways to include modules in the hidden list:

* import()

this is probably the most commonly used method, called automagically when
you do this:

    use Devel::Hide qw(Foo Bar::Baz);

or

    perl -MDevel::Hide=...

* setting @Devel::Hide::HIDDEN

* environment variable DEVEL_HIDE_PM

both of these two only support 'global' hiding, whereas 'import()' supports
lexical hiding as well.

Optionally, you can provide some arguments *before* the list of modules:

* -from:children

propagate the list of hidden modules to your process' child processes. This
works by populating 'PERL5OPT', and is incompatible with Taint mode, as
explained in perlrun. Of course, this is unnecessary if your child
processes are just forks of the current one.

* -lexically

This is only available on perl 5.10.0 and later. It is a fatal error to try
to use it on an older perl.

Everything following this will only have effect until the end of the
current scope. Yes, that includes '-quiet'.

* -quiet

suppresses diagnostic output. You will still get told about errors. This is
passed to child processes if -from:children is in effect.

Provides

Requires

License

Artistic-1.0 OR GPL-1.0-or-later

Changelog

* Wed Sep 29 2021 Tina Müller <timueller+perl@suse.de>
  - updated to 0.0015
    see /usr/share/doc/packages/perl-Devel-Hide/Changes
    0.0015      2021-09-28
    - Test warnings more carefully to avoid spurious test failures caused by a
      bug in Test2::Util (http://www.cpantesters.org/cpan/report/c01ff7be-1e8a-11ec-bc66-57723b537541)
* Wed Apr 28 2021 Tina Müller <timueller+perl@suse.de>
  - updated to 0.0014
    see /usr/share/doc/packages/perl-Devel-Hide/Changes
* Mon Feb 17 2020 <timueller+perl@suse.de>
  - updated to 0.0013
    see /usr/share/doc/packages/perl-Devel-Hide/Changes
    0.0013      2020-01-16
    - Cope with changes to how the hints hash works in perl 5.31.7
    0.0012      2020-01-15
    - Add -lexically argument to import() to support hiding modules
      just during the current scope
* Thu Feb 13 2020 <timueller+perl@suse.de>
  - updated to 0.0011
    see /usr/share/doc/packages/perl-Devel-Hide/Changes
    0.0011      2020-02-12
    - Fix https://rt.cpan.org/Public/Bug/Display.html?id=120220
    - Fix https://rt.cpan.org/Public/Bug/Display.html?id=120221
    - Add -quiet option to suppress some notices
* Sat Jun 16 2018 coolo@suse.com
  - updated to 0.0010
    see /usr/share/doc/packages/perl-Devel-Hide/Changes
* Tue Jul 30 2013 coolo@suse.com
  - initial package 0.0009
    * created by cpanspec 1.78.06

Files

/usr/lib/perl5/vendor_perl/5.38.2/Devel
/usr/lib/perl5/vendor_perl/5.38.2/Devel/Hide.pm
/usr/share/doc/packages/perl-Devel-Hide
/usr/share/doc/packages/perl-Devel-Hide/Changes
/usr/share/doc/packages/perl-Devel-Hide/README
/usr/share/man/man3/Devel::Hide.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Mon Mar 11 23:53:03 2024