pricecharts

track prices of consumer electronics
Log | Files | Refs | README

commit 1b52fbf2ca40f1d6afb7578bc6635127ef52dc90
parent f1d32b286f1ab8c0f72c4839e7c2a884a20fcded
Author: Kyle R W Milz <kyle@getaddrinfo.net>
Date:   Mon, 18 Aug 2014 22:30:39 -0600

product_scraper: can't return if not inside a function

Diffstat:
Mproduct_scraper.pl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product_scraper.pl b/product_scraper.pl @@ -63,7 +63,7 @@ for (keys %product_map) { my $class_url = "http://www.memoryexpress.com/Category/" . "$product_map{$_}?PageSize=120&Page="; my $dom = get_dom($class_url . "1", $ua); - return if (! defined $dom); + next if (! defined $dom); $dom = $dom->find(".AJAX_List_Pager"); my @elements = $dom->find("li")->html_array();