changeset 51:bc31729f29f4

removed unused file
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Sat, 18 Oct 2008 22:24:03 +0800
parents 96ee35378696 (diff) f2065bdcaeb3 (current diff)
children d2ac1e198ce4
files nopaste
diffstat 3 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 (
Binary file nopaste has changed
--- 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)
     {