perl-Acme-Devel-Hide-Tiny-0.002-alt1.noarch.rpm


Advertisement

Description

perl-Acme-Devel-Hide-Tiny - Hide a perl module for testing, in one statement

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Acme-Devel-Hide-Tiny
Package version 0.002
Package release alt1
Package architecture noarch
Package type rpm
Installed size 17.17 KB
Download size 17.17 KB
Official Mirror ftp.altlinux.org
The the Devel::Hide manpage and the Test::Without::Module manpage modules are very helpful
development tools.  Unfortunately, using them in your .t files adds a
test dependency.  Maybe you don't want to do that.
Instead, you can use the one-liner from the SYNOPSIS above, which is an
extremely stripped down version of the Devel::Hide manpage. NOTE: this method
only works on Perl v5.8.1 and later.
Here is a more verbose, commented version of it:
use lib
map {
my ( $m, $c ) = ( $_, qq{die "Can't locate $_ (hidden)\n"} );
sub {
return unless $_[1] eq $m;
open my $fh, "<", \$c; return $fh
}
}
qw{Cpanel/JSON/XS.pm JSON/XS.pm}
; # end of 'use lib' statement
When perl sees a coderef in `@INC', it gives the coderef a chance to
provide the source code of that module.  In this case, if the path is the
one we want to hide, it returns a handle to source code that dies with the
message we want and perl won't continue looking at @<INC> to find the real
module source.  The module is hidden and dies with a message similar to the
one that would happen if it weren't installed.
=for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan

Alternatives

Package Version Architecture Repository
perl-Acme-Devel-Hide-Tiny - - -

Requires

Name Value
/usr/share/perl5 -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Acme/Devel/Hide/Tiny.pm) = 0.002
perl-Acme-Devel-Hide-Tiny = 0.002-alt1

Download

Type URL
Binary Package perl-Acme-Devel-Hide-Tiny-0.002-alt1.noarch.rpm
Source Package perl-Acme-Devel-Hide-Tiny-0.002-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Acme-Devel-Hide-Tiny rpm package:
    # sudo apt-get install perl-Acme-Devel-Hide-Tiny

Files

Path
/usr/share/doc/perl-Acme-Devel-Hide-Tiny-0.002/Changes
/usr/share/doc/perl-Acme-Devel-Hide-Tiny-0.002/LICENSE
/usr/share/doc/perl-Acme-Devel-Hide-Tiny-0.002/README
/usr/share/perl5/Acme/
/usr/share/perl5/Acme/Devel/
/usr/share/perl5/Acme/Devel/Hide/Tiny.pm

See Also

Package Description
perl-Acme-Dice-1.01-alt1.noarch.rpm The finest in croo ..., uhhh, precision dice!
perl-Acme-DieOnLoad-0.001-alt1.noarch.rpm A module that dies when loaded
perl-Acme-DoOrDie-0.001-alt1.noarch.rpm do-file replacement that dies on errors
perl-Acme-Don-t-1.01-alt1.noarch.rpm perl module Acme-Don-t
perl-Acme-DonMartin-0.09-alt1.noarch.rpm For programs that are easy to dictate over the telephone
perl-Acme-Dot-1.10-alt1.noarch.rpm Call methods with the dot operator
perl-Acme-DotDotGone-0.03-alt1.noarch.rpm The great new Acme::DotDotGone!
perl-Acme-DoubleHelix-0.01-alt1.noarch.rpm perl module Acme-DoubleHelix
perl-Acme-DreamyImage-2.0-alt1.noarch.rpm Dreamy image generator
perl-Acme-Drunk-0.03-alt1.noarch.rpm perl module Acme-Drunk
perl-Acme-Dump-And-Dumper-1.001005-alt1.noarch.rpm dump data structures without seeing any object guts
perl-Acme-Dzil-Plugin-Tester-0.04-alt1.noarch.rpm A distro that exists so I can test various dzil plugins
perl-Acme-ESP-1.002007-alt1.noarch.rpm The power to implant and extract strings' thoughts
perl-Acme-Echo-0.02-alt1.noarch.rpm Display perl statements before, after, and/or during execution
perl-Acme-EdError-9.17-alt1.noarch.rpm implements ed(1) error handling
Advertisement
Advertisement