Created
March 2, 2011 01:36
-
-
Save tomyhero/850298 to your computer and use it in GitHub Desktop.
addding elsif
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub _decode_args { | |
my($h, $ie) = @_; | |
for my $key( keys %{$h} ) { | |
if ( ref $h->{$key} eq 'ARRAY' ) { | |
my @values = map { Encode::decode($ie, $_) } @{$h->{$key}}; | |
$h->{$key} = \@values; | |
} | |
elsif(ref $h->{$key} ){ | |
# do nithing; | |
} | |
else { | |
$h->{$key} = Encode::decode($ie, $h->{$key}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment