Ok here a better solution since it only use perl Split function to parse the dmidecode version
my @SplitVersion = split(/\./, `dmidecode -V`); if (@SplitVersion[0] >= 3){ return 1;} elsif ((@SplitVersion[0] == 2) && ( @SplitVersion[1] >= 7)){ return 1;}
As far as I know this one should work with almost any perl version... but i'm not a perl expert at all
Stonedge
Ok here a better solution since it only use perl Split function to parse the dmidecode version
my @SplitVersion = split(/\./, `dmidecode -V`);
if (@SplitVersion[0] >= 3){
return 1;}
elsif ((@SplitVersion[0] == 2) && ( @SplitVersion[1] >= 7)){
return 1;}
As far as I know this one should work with almost any perl version... but i'm not a perl expert at all
Stonedge