- #!/usr/bin/env perl
- # License: CC0
- # Detects if a Perl module is installed on system and prints a message if not.
- # More ways here: https://www.perlmonks.org/?node_id=807408
- use Module::Load::Conditional qw(can_load);
- can_load( modules => {'Example::Module::Name'} ) or die('module not installed');
|