Last active
December 14, 2015 17:09
-
-
Save hoehrmann/5120351 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v5.16; | |
use strict; | |
use warnings; | |
state $f = do { | |
open my $f, '>:utf8', 'delme.tmp'; | |
$f; | |
}; | |
print $f "" if 0; | |
say $f "test"; | |
# The last line fails under v5.16.0 MSWin32-x86-multi-thread | |
# "Can't use an undefined value as a symbol reference at ..." | |
# It works if the `print $f "" if 0;` is removed or `if 1;`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment