remove one use of sortHash
This commit is contained in:
parent
fadc4f34ea
commit
95f98696be
2 changed files with 15 additions and 7 deletions
|
|
@ -165,7 +165,10 @@ sub getOptions {
|
|||
my %options = ();
|
||||
tie %options, 'Tie::IxHash';
|
||||
if (ref $possibleValues eq "HASH") {
|
||||
%options = %{$possibleValues};
|
||||
%options = %{$possibleValues};
|
||||
}
|
||||
elsif (ref $possibleValues eq 'ARRAY') {
|
||||
%options = @$possibleValues;
|
||||
}
|
||||
else {
|
||||
foreach my $line (split "\n", $possibleValues) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue