summaryrefslogtreecommitdiffstats
path: root/scripts/dejunk.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-02-02 17:36:06 +0100
committerDavid Leadbeater2015-02-02 17:36:06 +0100
commit8c57dd74f36b0429b725ff2a511ea951376680dd (patch)
tree8955895edd0432da036782d67aa253079b003ca8 /scripts/dejunk.pl
parenta457c0a97058fadf1b84247efd16176989412bc9 (diff)
parent0816da664099746d962ee06b7de71be7c570e069 (diff)
downloadscripts.irssi.org-8c57dd74f36b0429b725ff2a511ea951376680dd.tar.bz2
Merge pull request #130 from ailin-nemui/localise_vars
Localise the $/ special variable.
Diffstat (limited to 'scripts/dejunk.pl')
-rw-r--r--scripts/dejunk.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dejunk.pl b/scripts/dejunk.pl
index 5c7c01a..ce4d167 100644
--- a/scripts/dejunk.pl
+++ b/scripts/dejunk.pl
@@ -274,7 +274,7 @@ sub load_activity_data {
error("Could not read dejunk activity data from $fn: $!");
return;
}
- $/ = undef;
+ local $/;
my $file_contents = <$fh>;
eval {
my $data = eval $file_contents;