summaryrefslogtreecommitdiffstats
path: root/util/process_docs.pl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-05-30 11:20:37 +0200
committerRichard Levitte <levitte@openssl.org>2016-05-30 11:55:46 +0200
commit23049aa52e2b4f12c2c2d7c7d80f5b1876a1b8ba (patch)
treec3cc4e455726e1456cdaeb09b60f3eef6c87be69 /util/process_docs.pl
parent453fc7a0185dcd046a8ab2b029e0807a073f93c2 (diff)
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 <appro@openssl.org>
Diffstat (limited to 'util/process_docs.pl')
-rw-r--r--util/process_docs.pl4
1 files changed, 1 insertions, 3 deletions
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;