in reply to Perl Worst Practices

McDarren reported a segfault in 5.8.4. It's something strange. This segfaults:

use warnings; use strict; our $I = "f"; $I = undef; open $I, '<', \3 or die "open in mem: $!"; bless \$a, 0; $I = ref \$a;

But this doesn't:

use warnings; use strict; our $I = "f"; undef $I; ## <--- open $I, '<', \3 or die "open in mem: $!"; bless \$a, 0; $I = ref \$a;

Fixed version follows: I've updated the OP.

--
David Serrano