summaryrefslogtreecommitdiff
path: root/lib/SelectSaver.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SelectSaver.t')
-rw-r--r--lib/SelectSaver.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SelectSaver.t b/lib/SelectSaver.t
index 3b58d709ab..757f0cd6ec 100644
--- a/lib/SelectSaver.t
+++ b/lib/SelectSaver.t
@@ -9,7 +9,7 @@ print "1..3\n";
use SelectSaver;
-open(FOO, ">foo-$$") || die;
+open(FOO, ">", "foo-$$") || die;
print "ok 1\n";
{
@@ -18,7 +18,7 @@ print "ok 1\n";
}
# Get data written to file
-open(FOO, "foo-$$") || die;
+open(FOO, "<", "foo-$$") || die;
chomp($foo = <FOO>);
close FOO;
unlink "foo-$$";