note
learner@perl
Hi,
<p> $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</p>
<p> i used the code below and executed</p>
<code>
my $line = join /\t/ , ($empid, @array);
push @report, $line;
</code>
<p>Output i got as below</p>
<code>
Name DOB DOJ Country Region Salary Place
JKSLK1989010120000101FranceALMERIA100000.00BCFGHK
</code>
<p>Output expected</p>
<code>
Name DOB DOJ Country Region Salary Place
JKSLK 1989010120000101 France ALMERIA 100000.00BCFGHK
</code>
<p> i am trying to write this output to csv file, how can i do that, any solution please</p>
1043688
1043708