Mercurial > eagle-eye
view spy.pl @ 291:73c9bf517155
fixed for check checking
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Fri, 05 Dec 2008 22:49:36 +0800 |
parents | 10f14db31151 |
children | b3b845d30d4b |
line wrap: on
line source
#!/usr/bin/perl use strict; use Ikariam; use Data::Dumper; use Decision::ParseTree q{ParseTree}; use YAML qw/LoadFile Dump DumpFile/; our $i = new Ikariam($::server, $::user, $::pass); $i->login; # $i->check(); foreach (glob("city-*-dump.yaml")) { my $city = LoadFile($_); $i->{'cities'}->{$city->{id}} = $city; my $spydata = $i->checkSafeHouse($city->{id}); foreach (keys(%{$spydata})) { DumpFile("spy-$_-dump.yaml", $spydata->{$_}); } } $i->logout;