Hi guys

I'm wondering how i can insert a word into the top of an excel file using perl without messing with the format. I want to add a row at the top of the file and insert a word in the first row first column keeping same format, having dramas.

I have created a new file with the word i want in 0,0 then i want the other document to copy itself under this word. basically I just want everything to be a row lower than it is in the same format and then insert a word into the first row first column for encryption purposes. Can anyone help?

if ($WE_NEED_TO_DO_ENCRYPTION) { if ($ext =~ /XLS/i) { # open a new excel file insert the word 'encryted' on the 1st ro +w, 1st column. my $workbook = Spreadsheet::WriteExcel->new($report_type . '_' +. $time . $ext); my $worksheet = $workbook->add_worksheet(); $worksheet->write(0, 0, 'encrypted'); # now copy report file into the new xsl file. # THIS IS WHERE I AM STUCK I NEED TO PUT THE REST OF ANOTHER FIL +E HERE IN THE SAME FORMAT

In reply to Using Spreadsheet:WriteExcel or whatever else I need by bennierounder

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.