Alien-proj
view release on metacpan or search on metacpan
lib/Alien/proj.pm view on Meta::CPAN
<a href="https://ci.appveyor.com/project/shawnlaffan/perl-alien-proj"><img src="https://ci.appveyor.com/api/projects/status/0j4yh071yw7xyjxx?svg=true" /></a>
</p>
=end HTML
=head1 SYNOPSIS
use Alien::proj;
# assuming you have populated @args already
my ($stdout, $stderr, $exit_code)
= Alien::proj->run_utility ('projinfo', @args);
# Get the bin dirs of Alien::proj and
# all share-installed dependent aliens
my @dirs = Alien::proj->bin_dirs;
=head1 DESCRIPTION
PROJ is a generic coordinate transformation software. See L<https://proj.org/about.html>.
t/03-utilities.t view on Meta::CPAN
use Test::Alien;
use Alien::proj;
use File::Which qw /which/;
UTILITY:
{
local $TODO = 'not all system installs have utilities'
if Alien::proj->install_type eq 'system'
&& !which 'projinfo';
my ($result, $stderr, $exit) = Alien::proj->run_utility ("cs2cs");
like ($stderr, qr{Rel. \d\.\d\.\d, .+ \d{4}},
'Got expected result from cs2cs utility');
diag '';
diag ("\nUtility results:\n" . $result);
diag ($stderr) if $stderr;
diag "Exit code is $exit";
diag '';
diag 'Bin dirs: ' . (Alien::proj->bin_dirs);
}
done_testing();
( run in 0.742 second using v1.01-cache-2.11-cpan-49f99fa48dc )