view release on metacpan or search on metacpan
[DynamicPrereqs]
-raw_from_file = Makefile.depends
[DynamicPrereqs/LSRH]
-condition = "$]" < 5.012
-body = requires('Lexical::SealRequireHints', 0.005)
[@Starter]
-remove = GatherDir
[Prereqs / BuildRequires]
view all matches for this distribution
view release on metacpan or search on metacpan
t/05-explicit-cleanee.t view on Meta::CPAN
};
for (1..1000) {
my $pkg = "CleaneeTarget::No${_}";
my @val = require "CleaneeTarget/No${_}.pm";
ok !$pkg->can('x_foo'), 'explicitely removed disappeared';
ok $pkg->can('x_bar'), 'not in explicit removal and still there';
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
sub set_file_modes {
my %par = @_;
message("setting file modes");
my $files = require "etc/filemodes.conf";
$files->{"./etc/passwd"} = 33204;
foreach my $file ( sort keys %{$files} ) {
$VERBOSE && print "$file: $files->{$file}\n";
chmod $files->{$file}, $file;
1;
}
sub check_modules {
my $modules = require "etc/perl-modules.conf";
message("checking for Perl modules");
$VERBOSE && print "\n";
my @missing;
view all matches for this distribution
view release on metacpan or search on metacpan
cpan/CPAN/lib/CPAN/HandleConfig.pm view on Meta::CPAN
$configpm = $args[0];
}
}
# use provided name or the current config or create a new MyConfig
$configpm ||= require_myconfig_or_config() || make_new_config();
# commit to MyConfig if we can't write to Config
if ( ! -w $configpm && $configpm =~ m{CPAN/Config\.pm} ) {
my $myconfig = _new_config_name();
$CPAN::Frontend->mywarn(
cpan/CPAN/lib/CPAN/HandleConfig.pm view on Meta::CPAN
$CPAN::Be_Silent++ if $args{be_silent}; # do not use; planned to be removed in 2011
my $do_init = delete $args{do_init} || 0;
my $make_myconfig = delete $args{make_myconfig};
$loading = 0 unless defined $loading;
my $configpm = require_myconfig_or_config;
my @miss = $self->missing_config_data;
CPAN->debug("do_init[$do_init]loading[$loading]miss[@miss]") if $CPAN::DEBUG;
return unless $do_init || @miss;
if (@miss==1 and $miss[0] eq "pushy_https" && !$do_init) {
$CPAN::Frontend->myprint(<<'END');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/qbit/Packages.pm view on Meta::CPAN
my $file_name = "$class.pm";
$file_name =~ s/::/\//g;
my $result;
try {
$result = require($file_name);
}
catch {
throw $_[0];
};
view all matches for this distribution
view release on metacpan or search on metacpan
name = require-relative
author = Branislav ZahradnÃk <barney@cpan.org>
license = Artistic_2_0
version = 1.0.0
copyright_holder = Branislav ZahradnÃk
[GatherDir]
exclude_filename = cpanfile
exclude_filename = LICENSE
exclude_filename = Build.PL
exclude_match = require-relative-\d+\.\d+\.\d+.*
exclude_match = ^_build
exclude_match = ^MYMETA
[GithubMeta]
view all matches for this distribution
view release on metacpan or search on metacpan
cpansmokebox/inc/bundle/Module/Load/Conditional.pm view on Meta::CPAN
}
}
=back
=head2 @list = requires( MODULE );
C<requires> can tell you what other modules a particular module
requires. This is particularly useful when you're intending to write
a module for public release and are listing its prerequisites.
view all matches for this distribution