you can't unlink an open file by instead opening $^X for read to get a
file handle for test purposes.
p4raw-id: //depot/perl@34639
is (DPeek (sub {}), '\CV(__ANON__)', 'sub {}');
{ our ($VAR, @VAR, %VAR);
- open VAR, ">VAR.txt";
+ open VAR, "<", $^X or die "Can't open $^X: $!";
sub VAR {}
format VAR =
.
- END { unlink "VAR.txt" };
is (DPeek ( $VAR), 'UNDEF', ' $VAR undef');
is (DPeek (\$VAR), '\UNDEF', '\$VAR undef');