I am new to programming in Perl.
Any help would be appreciated as I am sure what I am trying to do is simple for most programmers which I am not ;)
I am scraping data off a web page then extracting the relevant information for a report using regex.
The target data is in an array, I need to format it in uniform columns and send it in an email.
I am attempting to use 'sprintf' to format the columns and saving it in a string.
It only sends the the last line and I lose any formatting.
Thanks in advance
for (my $i = 0; $i <= $#data3; $i++)
$output = sprintf ("%s", "$data3[$i]");
my $mailFrom = 'firstname.lastname@example.org';
my $subjectLine = "Report";
#my $message =
my %mail = ( To => $mailTo,
From => $mailFrom,
Subject => $subjectLine,
Message => $output,
'Content-Type' => 'text/html; charset="iso-8859-1"'