in reply to Re^2: Appending time to each linein thread Appending time to each line
First capture the Data::Dumper output in a string, then prepend the timestamp:
my $message= Dumper $myvar; $message=~ s!^!$timestamp !mg; print $message; [download]