in reply to Re^2: Appending time to each line
in 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;