diff options
-rw-r--r-- | util/dofile.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/dofile.pl b/util/dofile.pl index 4bf90babbf..74d1520ed0 100644 --- a/util/dofile.pl +++ b/util/dofile.pl @@ -7,7 +7,13 @@ use strict; use warnings; -use Text::Template; + +# Because we know that Text::Template isn't a core Perl module, we use +# a fallback in case it's not installed on the system +use File::Basename; +use File::Spec::Functions; +use lib catdir(dirname(__FILE__)); +use with_fallback qw(Text::Template); # We actually expect to get the following hash tables from configdata: # |