X-Git-Url: http://lab.mitty.jp/git/?a=blobdiff_plain;f=twitter%2Fshow_status.pl;h=59658cbef39ddfd493a93c26be7944ec98eefe80;hb=ec2b7c9dc76edc1aaeb1471d1a74ef72f5199e1d;hp=887654a4a70272bf8b42735011bd5e3ad3ac4d76;hpb=4e0b0a1745557341454c79314947819b728f6e5e;p=lab.git diff --git a/twitter/show_status.pl b/twitter/show_status.pl index 887654a..59658cb 100755 --- a/twitter/show_status.pl +++ b/twitter/show_status.pl @@ -28,7 +28,20 @@ eval { foreach my $id (@ARGV) { my $res = $bot->show_status($id); use Data::Dumper; - print Dumper $res; + foreach my $line (split /\n/, Dumper $res) { + if ($line =~ /undef/) { next; } + unless ($line =~ / => {/ + || $line =~ / = / + || $line =~ /status/ + || $line =~ /'text'/ + || $line =~ /created/ + || $line =~ /'id'/ + || $line =~ /name/ + || $line =~ / },/ + || $line =~ / };/ + ) { next; } + print $line, "\n"; + } } }; if ($@) {