# HG changeset patch # User "Rex Tsai " # Date 1224339843 -28800 # Node ID bc31729f29f46930dde479387bf54fcf7b950325 # Parent 96ee35378696e977afb8772494ca6fd95ef429c8# Parent f2065bdcaeb37b532932dcca3dbb56e2ece66f96 removed unused file diff -r f2065bdcaeb3 -r bc31729f29f4 Ikariam.pm --- a/Ikariam.pm Sat Oct 18 22:21:42 2008 +0800 +++ b/Ikariam.pm Sat Oct 18 22:24:03 2008 +0800 @@ -1,7 +1,8 @@ #!/usr/bin/env perl BEGIN { - my $HOME = (getpwuid($<))[7] || $ENV{HOME} || $ENV{LOGDIR} || "."; - require "$HOME/.eagleeye.pm"; + foreach (((getpwuid($<))[7], $ENV{HOME}, $ENV{LOGDIR}, ".")) { + require "$_/.eagleeye.pm" if (-f "$_/.eagleeye.pm"); + } } use Class::DBI::AutoLoader ( diff -r f2065bdcaeb3 -r bc31729f29f4 nopaste Binary file nopaste has changed diff -r f2065bdcaeb3 -r bc31729f29f4 scan.pl --- a/scan.pl Sat Oct 18 22:21:42 2008 +0800 +++ b/scan.pl Sat Oct 18 22:24:03 2008 +0800 @@ -8,7 +8,10 @@ { my ($island, @cities) = @_; - die ("empty cities list.\n") if ($#cities == -1); + if ($#cities == -1) { + warn ("empty cities list.\n"); + return; + } foreach my $city (@cities) {