else {
foreach my $status (@{$res}) {
my $text = "";
+ $text .= "(". $status->{id} . ") ";
$text .= $status->{user}{name};
$text .= " [" . $status->{created_at} . "]";
- $text .= " (". $status->{id} . ")";
- $text .= " ". encode('utf8', $status->{text});
+ $text .= " ". $status->{text};
$text =~ s/\n//;
- print $text, "\n";
+ print encode('utf8', $text), "\n";
}
}
}