From 23049aa52e2b4f12c2c2d7c7d80f5b1876a1b8ba Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 30 May 2016 11:20:37 +0200 Subject: perl: use the 'if' module to conditionally load File::Glob Trying to use normal perl conditions to conditionally 'use' a perl module didn't quite work. Using the 'if' module to do so does work. Reviewed-by: Andy Polyakov --- util/process_docs.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'util/process_docs.pl') diff --git a/util/process_docs.pl b/util/process_docs.pl index cf1d326065..fe8589b18a 100644 --- a/util/process_docs.pl +++ b/util/process_docs.pl @@ -13,9 +13,7 @@ use File::Spec::Functions; use File::Basename; use File::Copy; use File::Path; -if ($^O ne "VMS") { - use File::Glob qw/glob/; -} +use if $^O ne "VMS", 'File::Glob' => qw/glob/; use Getopt::Long; use Pod::Usage; -- cgit v1.2.3