Spreadsheet::ParseExcel::SaveParser working amazingly. Somebody suggested Win32::OLE. Which is more effective and which one is simpler???

Win32::OLE requires that your perl code runs on a Windows system, and that system must have Excel installed. (It should be possible to use Wine and Excel, but I would not bet on that.) Excel knows every detail of its files, so it can rewrite its files without problems.

Spreadsheet::ParseExcel::SaveParser should work on any system. It knows how an Excel file is organised and does not need Excel. Unfortunately, not all Excel features are supported, so rewriting an Excel file using Spreadsheet::ParseExcel::SaveParser is currently lossy. See "Known Problems" in the documentation.

Which one is simpler? Spreadsheet::ParseExcel::SaveParser does not need Windows, Excel, and the sometimes fragile interaction with Excel. The Win32::OLE way requires that you know how to use OLE on Windows, e.g. from Visual Basic. If you don't know anything about OLE, you will have to learn OLE and Win32::OLE.

Which one is more effective? Define "effective". Lines of Code required? I have no idea. Speed? Just measure. Use both variants to solve the same problem, then run both variants and see for yourself which one takes longer.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^5: Open a file in append mode by afoken
in thread Open a file in append mode by ravi45722

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.