From e90546dbc3ef9a27493d6c69b8f12316b8723878 Mon Sep 17 00:00:00 2001 From: Piotr Karbowski Date: Mon, 23 Sep 2013 17:14:47 +0200 Subject: [PATCH] change dir to script_dir. --- scrape.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrape.pl b/scrape.pl index 3b44065..5985d30 100755 --- a/scrape.pl +++ b/scrape.pl @@ -8,7 +8,7 @@ use File::Basename 'dirname', 'basename'; use Cwd 'abs_path'; my $script_dir = abs_path(dirname(__FILE__)); - +chdir($script_dir); my $feed_raw = get("https://grsecurity.net/testing_rss.php"); my $feed = XMLin($feed_raw, ForceArray => ['item']); -- 2.47.3