summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOliver Tappe2007-03-14 22:06:48 +0100
committerOliver Tappe2007-03-14 22:06:48 +0100
commiteedc909b15c2d025ffaa16ed78f4e5230d004932 (patch)
treeb234e41394fdcfd914e4cd9ea48dc0de3ed8b647 /lib
parent* cleanup (diff)
downloadcore-eedc909b15c2d025ffaa16ed78f4e5230d004932.tar.gz
core-eedc909b15c2d025ffaa16ed78f4e5230d004932.tar.xz
core-eedc909b15c2d025ffaa16ed78f4e5230d004932.zip
* fixed non-local $/ in slurpFile()
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@770 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'lib')
-rw-r--r--lib/OpenSLX/Utils.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OpenSLX/Utils.pm b/lib/OpenSLX/Utils.pm
index cb43c6ea..a6048621 100644
--- a/lib/OpenSLX/Utils.pm
+++ b/lib/OpenSLX/Utils.pm
@@ -73,7 +73,7 @@ sub slurpFile
if (!open(F, "< $file") && !$mayNotExist) {
die _tr("could not open file '%s' for reading! (%s)", $file, $!);
}
- $/ = undef;
+ local $/ = undef;
my $text = <F>;
close(F);
return $text;