Skip to content

Commit

Permalink
Patch from Matt Whiteley
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Apr 7, 2012
1 parent 0f306b2 commit 78b7daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/sm-json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ $reference = \$hash->{$key};


if (ref($reference) eq "SCALAR") { if (ref($reference) eq "SCALAR") {
printf "%s\n", $hash->{$key}; printf "%s\n", $hash->{$key};
} elsif (ref($reference) eq "ARRAY") { } elsif (ref($$reference) eq "ARRAY") {
print STDOUT join("", $hash->{$key}); # TODO: Think this out a bit more. print STDOUT join(" ", @{$hash->{$key}}) . "\n"; # TODO: Think this out a bit more.
} elsif (ref($hash->{$key}) eq "HASH") { } elsif (ref($hash->{$key}) eq "HASH") {
# This allows for namespace querying to reflect on available keys. # This allows for namespace querying to reflect on available keys.
printf "%s\n", join(" ",keys(%{$hash->{$key}})); printf "%s\n", join(" ",keys(%{$hash->{$key}}));
Expand Down

0 comments on commit 78b7daf

Please sign in to comment.