<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PERL .csv file new sheet in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919057#M97053</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have written a PERL script to create a .csv file and write some data in it. Now I want to use a different file handle and create a new worksheet in the same .csv file and write data in it.&lt;BR /&gt;&lt;BR /&gt;Can anyone please let me know how to accomplish the task.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Anand</description>
    <pubDate>Fri, 29 Dec 2006 13:33:56 GMT</pubDate>
    <dc:creator>Anand_30</dc:creator>
    <dc:date>2006-12-29T13:33:56Z</dc:date>
    <item>
      <title>PERL .csv file new sheet</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919057#M97053</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have written a PERL script to create a .csv file and write some data in it. Now I want to use a different file handle and create a new worksheet in the same .csv file and write data in it.&lt;BR /&gt;&lt;BR /&gt;Can anyone please let me know how to accomplish the task.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Anand</description>
      <pubDate>Fri, 29 Dec 2006 13:33:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919057#M97053</guid>
      <dc:creator>Anand_30</dc:creator>
      <dc:date>2006-12-29T13:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: PERL .csv file new sheet</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919058#M97054</link>
      <description>You can't. CSV does not support multiple sheets.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 29 Dec 2006 13:59:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919058#M97054</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-12-29T13:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: PERL .csv file new sheet</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919059#M97055</link>
      <description>&lt;!--!*#--&gt;Hi Anand,&lt;BR /&gt;&lt;BR /&gt;You'll need the Spreadsheet::WriteExcel perl module.&lt;BR /&gt;&lt;BR /&gt;    my $workbook  = Spreadsheet::WriteExcel-&amp;gt;new('filename.xls');&lt;BR /&gt;    my $worksheet = $workbook-&amp;gt;add_worksheet();&lt;BR /&gt;    $worksheet-&amp;gt;write(0, 0, "Hi Excel!");&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/dist/Spreadsheet-WriteExcel/" target="_blank"&gt;http://search.cpan.org/dist/Spreadsheet-WriteExcel/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 29 Dec 2006 14:22:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919059#M97055</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-12-29T14:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: PERL .csv file new sheet</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919060#M97056</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Anand&amp;gt;&amp;gt; create a new worksheet in the same .csv file &lt;BR /&gt;&lt;BR /&gt;Merijn&amp;gt;&amp;gt; You can't. CSV does not support multiple sheets.&lt;BR /&gt;&lt;BR /&gt;Right, but I don't like the wording.&lt;BR /&gt;&lt;BR /&gt;You can do anything you darn well please in a .csv file.&lt;BR /&gt;It supports anything you can imagine and code up.&lt;BR /&gt;It could easily support a notion that a row/line/record with &lt;WORKSHEET name="Blah Blah"&gt; starts a section corresponding to a worksheet to be terminated by:  &lt;/WORKSHEET&gt;&lt;BR /&gt;&lt;BR /&gt;However, do not expect EXCEL to interpret the data thusly.&lt;BR /&gt;&lt;BR /&gt;Microsoft EXCEL only supports a single worksheet in a csv file.&lt;BR /&gt;If you want more, you'll have to code to a format for which excel support worksheets.&lt;BR /&gt;&lt;BR /&gt;Anand, &lt;BR /&gt;May we assume that you want to feed the csv file to excel? Then use the perl Spreadsheet::WriteExcel moduel as Spex indicate, or figure out how to write XML instead of CSV.&lt;BR /&gt;Hint: Go into EXCEL, create a simple spreadsheet with two or three worksheets, a few columns and data lines each, no formatting or formulas (to begin with) and SAVE AS ... .XML.&lt;BR /&gt;No open the result with NOTEPAD.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Dec 2006 16:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919060#M97056</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-12-29T16:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: PERL .csv file new sheet</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919061#M97057</link>
      <description>Hein, nice(er) words, but that will violate the (very simple) csv specs.&lt;BR /&gt;&lt;BR /&gt;CSV does not support multiple sheets. period.&lt;BR /&gt;&lt;BR /&gt;Any other format M$Excel, OpenOffice Calc, Improv, Oleo, XML, ... does, but csv does not&lt;BR /&gt;&lt;BR /&gt;For all the others there are indeed fine modules, well, maybe not for oleo, but still. And CSV is not, and does not support, (embedded) XML.&lt;BR /&gt;&lt;BR /&gt;Write two files: sheet1.csv, and sheet2.csv: see: two sheets, both obeing the specs (if you've used COMMA's and not M$'s semi-colons, and correct quoting, which is easily achieved using Text::CSV_XS or Text::CSV.&lt;BR /&gt;&lt;BR /&gt;BTW *REAL* CSV has \r\n on the line ending, something violated quite often too.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ A heavy CSV user ]</description>
      <pubDate>Fri, 29 Dec 2006 16:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-csv-file-new-sheet/m-p/3919061#M97057</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-12-29T16:32:20Z</dc:date>
    </item>
  </channel>
</rss>

