Explicitly import module File::Which

This ensures to get runtime errors if module is not installed

Signed-off-by: Georg Schönberger <gschoenberger@thomas-krenn.com>
This commit is contained in:
Jorge Anton
2014-12-03 07:28:24 +01:00
committed by Georg Schönberger
parent d8b3212573
commit 39e518db4d

View File

@@ -28,6 +28,7 @@
use strict;
use warnings;
use Getopt::Long qw(:config no_ignore_case);
use File::Which;
our $VERBOSITY = 0;
our $VERSION = "2.1";
@@ -1218,7 +1219,6 @@ MAIN: {
if(defined($version)){ print $NAME . "\nVersion: ". $VERSION . "\n"; }
# Check storcli tool
if(!defined($storcli)){
eval('use File::Which');
if($platform eq 'linux'){
$storcli = which('storcli');
if(!defined($storcli)){