I've got the two files combined in an array. If I use Dumper I can see the contents of the array and they are correct. My problem now is how to print them out in a CSV format. This is what I tried:
my @row = $dbh->selectall_arrayref("SELECT IP, Domain, ServerName, Day
+sUptime, OS, RAM, OSSP, InstallDate, CPUSpeed, CPUCount, CPUType FROM
+ hosts INNER JOIN info ON hosts.IP = info.IP");
#print Dumper @row;
foreach my $data ( @row ) {
print("$data");
};
How can I get each row of the array to print out on a seperate line each?