projects
/
lab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f2d507
)
* skip unimportant elements from the Dump
author
mitty
<mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Mon, 13 Sep 2010 12:32:55 +0000
(12:32 +0000)
committer
mitty
<mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Mon, 13 Sep 2010 12:32:55 +0000
(12:32 +0000)
git-svn-id: https://lab.mitty.jp/svn/lab/trunk/twitter@51
7d2118f6
-f56c-43e7-95a2-
4bb3031d96e7
show_status.pl
patch
|
blob
|
history
diff --git
a/show_status.pl
b/show_status.pl
index
887654a
..
59658cb
100755
(executable)
--- a/
show_status.pl
+++ b/
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 ($@) {