in reply to error in printing output of Data::Dumper to file
It worked for me also (Perl v5.16.2). It would be helpful if you could post some of the surrounding code.
Lexical variables are preferred to bareword filehandles.
open my $fh5, ">>", "tagfile1" or die "Error: $!\n";
And as always,
use strict; use warnings;