From 7f0f20d779ea34473ae45db53de9a3c2b03bcd3f Mon Sep 17 00:00:00 2001 From: Jacob Haddon Date: Thu, 7 Mar 2024 14:22:17 -0500 Subject: [PATCH] updated blank with changes from other file --- blankRSS.pl | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/blankRSS.pl b/blankRSS.pl index 41e0445..7e2a72b 100755 --- a/blankRSS.pl +++ b/blankRSS.pl @@ -28,10 +28,12 @@ use HTML::Entities; # https://metacpan.org/pod/HTML::Entities # server file folders # my $rssFilePath = "/home/USER_FOLDER/public_html/feed.xml"; # my $htmlFilePath = "/home/USER_FOLDER/public_html/index.html"; +# my $errorFilePath = "/home/USER_FOLDER/public_html/feed.log"; # local file folders my $rssFilePath = "feed.xml"; my $htmlFilePath = "index.html"; +my $errorFilePath = "feed.log"; ################################### # RSS Configurations @@ -63,6 +65,10 @@ my %list; # Make the list of URLS while parsing DATA my $listHTML = "
\n"; +################################### +# Write the error file +################################### + +open(FH, '>', $errorFilePath) or die $!; +print FH $listURLError; +close(FH); + ################################### # Make an RSS Feed! ###################################