in reply to Re: Write array contents to csv file
in thread Write array contents to csv file
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Write array contents to csv file
by poj (Abbot) on Jul 11, 2013 at 14:27 UTC | |
by learner@perl (Novice) on Jul 11, 2013 at 14:53 UTC | |
by marto (Cardinal) on Jul 11, 2013 at 15:06 UTC | |
by poj (Abbot) on Jul 11, 2013 at 15:18 UTC |
In Section
Seekers of Perl Wisdom