&::DEBUG("rssFeed: Searching cache for $url");
open CACHE, "<$file" or return;
- binmode( CACHE, ":utf8" );
+ binmode( CACHE, ":encoding(UTF-8)" );
while (<CACHE>) {
next unless /^$url:/;
open IN, "<$file" or return;
open OUT, ">$file.tmp" or return;
- binmode( IN, ":utf8" );
- binmode( OUT, ":utf8" );
+ binmode( IN, ":encoding(UTF-8)" );
+ binmode( OUT, ":encoding(UTF-8)" );
# copy all but old ones
while (<IN>) {
}
1;
-# vim: ts=2 sw=2
+
+# vim:ts=4:sw=4:expandtab:tw=80