http://www.perlmonks.org?node_id=184317


in reply to typglobs and filehandles

Are you sure it's not the contents of %classHash? Your code seems to work just fine (eg, the snippet below works).
open(TEST, ">>test.html") || die; my $outhandle = undef; $outhandle = *TEST; print $outhandle "test\n"; close($outhandle);
If you replace the consecutive classHash tests with an if/elsif/else die, you should catch this.