sub _hash { my $self = shift; my $hash = shift; my @text = "\n"; my ($key, $value); while (($key, $value) = each %$hash) { push (@text, "$key", $self->_item($value), "\n"); } push @text, "\n"; return @text; }