Changeset 9095 in genesis


Ignore:
Timestamp:
Apr 21, 2011, 6:44:42 AM (14 years ago)
Author:
rick
Message:

Make optional module import more robust.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/genesis-to-yaml.pl

    r8871 r9095  
    11#!/usr/bin/env perl
    22use File::Basename;
     3use Module::Load::Conditional qw[check_install];
    34
    4 eval {
     5if (check_install(module => 'Geo::Coordinates::RDNAP')) {
    56  require Geo::Coordinates::RDNAP;
    6 };
    7 if (! $@) {
    87  Geo::Coordinates::RDNAP->import(qw/from_rd to_rd dms/);
    98} else {
Note: See TracChangeset for help on using the changeset viewer.