Thanks for all the replies! Yes, can't beat fruity loops, ha, ha! Ron, I think that's what I'm trying to achieve. Essentially all I'm trying to do is repeat the while loop script for as many times as I have fruit_types. As you've probably guessed from my "fruity loops", primary school example, :) I just don't have the scripting knowledge of Perl to execute this. I've been modifying the script with a bash loop, with something along the lines of...

occurrence=( $(wc -l fruit_types) ) for i in `seq 1 $occurrence` blah, blah, blah.

I know there must be an easier and less primitive way of doing this like you've suggested but could someone throw an example my way. As said I need some help with the scripting.


In reply to Re^3: Using variable files to add data into excel spreadsheet by Anonymous Monk
in thread Using variable files to add data into excel spreadsheet by rickyboy

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.