use strict;
use lib qw(./lib);
use Spreadsheet::WriteExcel;
use Math::Random qw(:all);
$worksheet->write(0, 0, "Zahl", $format);
$worksheet->write(0, 1, "Vorkommt",$bold);
my @rand_arr = map int,random_normal(10,5,5);
my ($temp,$count) = ("@rand_arr", 0);
($count = $temp =~ s/($_)//g) and printf "%2d:%s vor.\n", $_,$count for @rand_arr;
$worksheet->write(1, 0, "$_");
$worksheet->write(1, 1, "$count");
$workbook->close();
print "\n";
if u do that u gonna get a good output in the Terminal, but what iam trying to do is, to get the same output in the Excel and i think my problem is here
$worksheet->write(1, 0, "$_");
$worksheet->write(1, 1, "$count");
i dont know how to let excel go alone with the $ROW++..