Skip to content

Instantly share code, notes, and snippets.

@hoehrmann
Last active December 14, 2015 17:09
Show Gist options
  • Save hoehrmann/5120351 to your computer and use it in GitHub Desktop.
Save hoehrmann/5120351 to your computer and use it in GitHub Desktop.
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