6 GetOptions(\%options, ("l=s", "b=s"));
9 @list = Anime::ANN::getlist($options{"l"});
10 foreach $name (@list) {
17 exec "htmlview", Anime::ANN::geturl(Anime::ANN::getid $options{"b"});
20 if(!defined($ARGV[0])) {
21 printf STDERR "usage: anndata NAME\n";
25 unless($id = Anime::ANN::getid $ARGV[0]) {
26 printf STDERR "could not find $ARGV[0]\n";
30 $info = Anime::ANN::getseries $id;
40 if(ref $ref eq "HASH") {
41 for $key (sort keys %{$ref}) {
42 print ((" " x $ind) . "$key: " . (" " x (20 - length $key)) . "(" . $ref->{$key} . ")\n");
43 refdump($ref->{$key}, $ind + 1) if ref $ref->{$key};
45 } elsif(ref $ref eq "ARRAY") {
46 for($i = 0; $i < @{$ref}; $i++) {
47 print ((" " x $ind) . "$i: " . $ref->[$i] . "\n");
48 refdump($ref->[$i], $ind + 1) if ref $ref->[$i];
51 print ((" " x $ind) . "Unknown ref: $ref\n");
55 binmode STDOUT, ":utf8";