Find if there is a dist for that Perl module
use WebService::Dist;
if(foreign_package_exists 'deb', 'FFI-Platypus')
{
print "there is a debian package for FFI-Platypus';
}
This modules just provides some functions for determining if a vendor provides a particular CPAN dist as a package.
my $name = foreign_package_name $vendor, $name;
Given a valid vendor (deb
, rpm
, freebsd
or openbsd
) and a dist or module name (example: FFI::Platypus or FFI-Platypus
), return
the normal package name for that vendor (example: libffi-platypus-perl
).
my $bool = foreign_package_exists $vendor, $name;
Given a vendor and a dist or module name, return true if the vendor provides that package.
Graham Ollis [email protected]
This software is copyright (c) 2021-2024 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.