Perl and Excel

A

Amit

Hi All
I am trying to put a data in excel sheet from a data file using perl
language.
Whenever the line count of data files crosses 20,000, perl fail to
process the file.

I will be greatful if someone help me out of this problem.

Thanks in Advance
Amit
 
A

A. Sinan Unur

I am trying to put a data in excel sheet from a data file using perl
language.
Whenever the line count of data files crosses 20,000, perl fail to
process the file.

I will be greatful if someone help me out of this problem.

What have you done so far? There are quite a few ways of accomplishing this
task.

Have you read the posting guidelines?

Sinan
 
M

Marcel Müller

Amit said:
I am trying to put a data in excel sheet from a data file using perl
language.
Whenever the line count of data files crosses 20,000, perl fail to
process the file.

I will be greatful if someone help me out of this problem.

Write a plain text file with tab separated values and name it *.xls.
Excel will open it. That is that way SAP creates Excel files and it is
very reliable. (In contrast to many other methods.)
However, after 65535 lines the story is finally over since Excel can't
handle more. (Not absolutely sure if this is still true for Excel 2003)

# Write @line to tab separated values.
print XLSFILE join("\t", map { s/\"/\"\"/g; "\"$_\"" } @line), "\n";


Marcel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,182
Latest member
BettinaPol

Latest Threads

Top