i need to open the file containing the data below, and put it in a form that will keep everything between the ";"'s as separate records, and each line within the ";"'s as items i can call up. is a hash the best way to store it, and how would i do it? THANK YOU Data__________
; Begin Product GPY01A2 GPY Angel 2 Print 8.5x11 140.00 0.00 1.00 3.00 No ; Tracking Inventory? http://www.monkey-n-around.com/GPY/gallery/images/sang2.JPG|http:/ +/www.monkey-n-around.com/GPY/gallery/images/sang2.JPG ProdText\GPY01A2.txt SoftGoodControl: ::0:0 PriceCategory: Wholesale:114.00:114.00 Retail:114.00:114.00 Reside +ntial:114.00:114.00 Commercial:114.00:114.00 End Product ; Begin Product ZAF01 Zen Again Fire on Water Fountain 190.00 10.00 16.00 3.00 No ; Tracking Inventory? http://www.monkey-n-around.com/mall/images/fireonwaterfountains.JP +G|http://www.monkey-n-around.com/mall/images/fireonwaterfountains.JPG ProdText\ZAF01.txt Keywords: Zen Again Fire on Water Fountain SoftGoodControl: ::0:0 UnitOfMeasure: Lbs. End Product ;

In reply to which data structure and how? by malaga

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.