Hi,
$empid contains numeric value like 12 and @array contains values like Name DOB DOJ Country Place Salary, i am pushing all the values from $empid and @array to @report using join and all values are tab delimited
i used the code below and executed
my $line = join /\t/ , ($empid, @array);
push @report, $line;
Output i got as below
Name DOB DOJ Country Region Salary Place
JKSLK1989010120000101FranceALMERIA100000.00BCFGHK
Output expected
Name DOB DOJ Country Region Salary Place
JKSLK 1989010120000101 France ALMERIA 100000.00BCFGHK
i am trying to write this output to csv file, how can i do that, any solution please
|