Alien-Libarchive-Installer

 view release on metacpan or  search on metacpan

lib/Alien/Libarchive/Installer.pm  view on Meta::CPAN

149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
else
{
  require DynaLoader;
  @dir_search_list = grep { -d $_ } @DynaLoader::dl_library_path
}
 
found_dll: foreach my $dir (@dir_search_list)
{
  my $dh;
  opendir($dh, $dir) || next;
  # sort by filename length so that libarchive.so.12.0.4
  # is preferred over libarchive.so.12 or libarchive.so
  # if only to make diagnostics point to the more specific
  # version.
  foreach my $file (sort { length $b <=> length $a } readdir $dh)
  {
    if($^O eq 'MSWin32')
    {
      next unless $file =~ /^libarchive-[0-9]+\.dll$/i;
    }
    elsif($^O eq 'cygwin')
    {
      next unless $file =~ /^cygarchive-[0-9]+\.dll$/i;
    }
    else

t/00_diag.t  view on Meta::CPAN

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
sub spacer ()
{
  diag '';
  diag '';
  diag '';
}
 
pass 'okay';
 
my $max = 1;
$max = $_ > $max ? $_ : $max for map { length $_ } @modules;
our $format = "%-${max}s %s";
 
spacer;
 
my @keys = sort grep /(MOJO|PERL|\A(LC|HARNESS)_|\A(SHELL|LANG)\Z)/i, keys %ENV;
 
if(@keys > 0)
{
  diag "$_=$ENV{$_}" for @keys;
  



( run in 0.380 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )