Skip to content
Snippets Groups Projects
Commit d1756ee3 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

remove all white spaces before and after the key/value we are reading from the config file

parent ed97cb52
No related branches found
No related tags found
No related merge requests found
......@@ -205,7 +205,10 @@ sub process_file {
next if !$line;
my ($key, $value) = split("=",$line);
$value =~ s/\s+$// if defined $value;
$value =~ s/^\s*// if defined $value;
$value =~ s/\s*$// if defined $value;
$key =~ s/^\s*// if defined $key;
$key =~ s/\s*$// if defined $key;
if($key eq "species"){
$type = "species";
$species_hash{'species'} = $value;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment