Thankyou all for your great advise and examples. (Wow). I have been trying to modify the examples to allow me to export the results to Microsoft Excel. I am trying to access each of the hash keys to allow me to place them into its own cell. How can I use one of the above examples to allow me to do the following.

$worksheet->Cells($count,1)->{Value} = "$location";

$worksheet->Cells($count,1)->{Value} = "$width";

$worksheet->Cells($count,2)->{Value} = "$height";

$worksheet->Cells($count,3)->{Value} = "$quantity";

etc


In addition, I am also wanting to specify a type of film used with a given location

I was thinking that I could use tab spacing between the location name and the film type

For example the text file will look like this


office 3 \t safetyfilm

100 120

100 120

135 125

bedroom 1 \t windowtint

125 125

125 125


Then i would also export the film type into Excel

$worksheet->Cells($count,2)->{Value} = "$film";

Or should i place the type of film into the text file another way

Thankyou all again

Thankyou again for all your wisdom


In reply to Re: Data Structures Help by Anonymous Monk
in thread Data Structures Help by Anonymous Monk

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.