I have text file, I like to split in multiple arrays so I can output as muliple tables on same html page Each table will collect the data below the title symbol $...? I am trying to do it with hash of arrays but I am stucked with reference syntax here input file. I couldn't think properly today. Thanks heap!

"$Bulletin Summary?" "$Person Absences?" "No","Person","Code","Period","Absence Reason" "3","B Gra","GAU","All Day","Parent Leave" "5","C Jema","JBD","Day 5 Before School; P (0.2)","Personal Leave" "6","G Eenza","CBA","All Day","Long Service Leave" "7","S Hanie","SBO","4 (1.0)","Meeting" "$Lesson Cancellations?" "Period","Roll Class","Class","Teacher","Room","Reason" "1 (1.0)","12","Common","","HLN","Camp" "2 (2.0)","12","Common","","HLS","Camp" "3 (3.0)","12","AC033B","GANLIS Pet","Y207","Camp" "4 (4.0)","12","EN013B","THUM Jil","Y217","Sick" "$Person Calendar Activities?" "Activity","Start Period","End Period ","Teacher Codes" "LSL","Day 1 Before School (05/29/2017)","GS (08/25/2017)","MHA" "Leave","Day 8 Before School (06/08/2017)","GS","LGR" "LWOP","Day 6 Before School (06/19/2017)","GS","ARO" "South Africa Trip","Day 9 Before School (06/22/2017)","GS","DCA;KGA;B +KI" "$Kids Calendar Activities?" "Activity","Start Period","End Period ","Teacher Codes","Roll Class Co +des","No. Students" "12 Reteat Friday","1","GS","RBR;CBU;TCI;JEM;BHO;RMA;EMG;AMO;KPA;BRY;G +SC;HSI;PSW;KWI","","0" "$Kids Attendance Changes?" "No student attendance changes have been recorded for this day" "$Replacement Persons?" "Period","Room/Area","Class","Roll Class","Absent Teacher","Replacemen +t Teacher","Absent Reason","Load","Count","Notes" "P (0.2)","A107","Pastoral-BRY","12","R Ber","S Peter","Camp","0.2","0 +.0","" "1 (0.2)","A107","Pastoral-PSE","12","S Peter","S John","","0.2","0.0" +,"" "2 (0.2)","Y214","Pastoral-ARO","12","R Anh","Di Cesar Mose","Leave Wi +thout Pay","0.2","0.2","" "3 (0.2)","Y106","Pastoral-ACO","11","C Anche","J Miky","Personal Leav +e","0.2","0.0","" "4 (0.2)","Y106","Pastoral-MJE","11","JENKINSON Mark","JENKINSON Mark" +,"","0.2","0.0","" "$Room Changes?" "Period","Roll Class","Class","Teacher","Room","New Room" "P (0.2)","12","Pastoral-BRY","S John","A106","A107" "2 (0.2)","11","Pastoral-ACO","J Myki","Y107","Y106" "2 (0.2)","10","Pastoral-KPA","De Rest Anni","Y002","Y205" "3 (1.0)","11","RE0111","Woland Can","Y220","LTH" "4 (1.0)","11","RE0112","Woland Can","Y219","LTH" "4 (1.0)","11","RE0113","Da Charlott","Y105","LTH"
Nirvana is Now or Never

In reply to split the text file to multiple arrays by mhoang

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.