Subject: | patch to silence a warning in amazonwish |
attached patch silences a warning in amazonwish encountered on US wishlist 6JX9XSIN6VL5
while debugging 2.002 get_list issues
Subject: | add_length_to_amazonwish.diff |
--- /opt/local/bin/amazonwish 2009-07-23 14:08:11.000000000 -0700
+++ ./amazonwish 2009-08-23 08:35:32.000000000 -0700
@@ -167,7 +167,7 @@
printf "\n";
}
- $total += $book{'price'} unless (!defined $book{'price'} || $book{'price'} =~ /unavailable/i);
+ $total += $book{'price'} unless (!defined $book{'price'} || !length $book{'price'} || $book{'price'} =~ /unavailable/i);
}