Skip to content

Commit

Permalink
Minor PBP file handle ammendment
Browse files Browse the repository at this point in the history
Removing Bareword file handles and Two-argument "open".
  • Loading branch information
lancew authored and oalders committed Oct 4, 2019
1 parent a856e75 commit c6dfcb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/form.t
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ EOT
my $filename = sprintf "foo-%08d.txt", $$;
die if -e $filename;

open(FILE, ">$filename") || die;
binmode(FILE);
print FILE "This is some text\n";
close(FILE) || die;
open my $file, ">", $filename || die;
binmode($file);
print $file "This is some text\n";
close($file) || die;

$f->value(f => $filename);

Expand Down

0 comments on commit c6dfcb5

Please sign in to comment.