sub getItemsFromFile { local $/=undef; open IN_FILE, "< /tmp/.rss_download_file"; my $file_in = ; close (IN_FILE); #$file_in="headline1headline2"; my @allItems=(); #while ($file_in =~ m{<\s*item\s*>(.*?)}g) while ($file_in =~ m{(.*?)}g) { push (@allItems, $1); print "$1\n";; } return @allItems; }