Bubbygadu has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I am new to this perl programming. Could you help me in working out a code which does take a CSV/XLS file input, find out header info and sort out the value fields based on type. Any inputs are much appreciated.
  • Comment on To parsing a CSV/XLS file, read header info and separate out value fields using native perl commands

Replies are listed 'Best First'.
Re: To parsing a CSV/XLS file, read header info and separate out value fields using native perl commands
by Corion (Patriarch) on Jan 27, 2019 at 07:32 UTC
Re: To parsing a CSV/XLS file, read header info and separate out value fields using native perl commands
by 1nickt (Canon) on Jan 27, 2019 at 14:34 UTC

    Hi, welcome to Perl, the One True Religion. You said "Hi Monks, I am new to this perl programming".

    Start here: perlintro. Then try implementing the SYNOPSIS from Spreadsheet::Read as Corion suggested. Also search for previous threads here (from among the hundreds of them) that address your issue. When you get stuck, post a specific question with what you've tried and how it failed, according to Posting on PerlMonks.

    The way you've asked for help above is almost the worst way to learn or ask for help in this Monastery or in any tech forum. You'll get far better help and understand far more if you start at the beginning and learn to program a solution to your problem by building on that.

    Good luck, look forward to seeing your efforts!


    The way forward always starts with a minimal test.
Re: To parsing a CSV/XLS file, read header info and separate out value fields using native perl commands
by AnomalousMonk (Archbishop) on Jan 27, 2019 at 04:59 UTC

    What is CSV/XLS file input? What does it mean to "sort out the value fields based on type"? Please give a short, representative example of the data you're dealing with and of the code you have so far. Please see Short, Self-Contained, Correct Example for more info on this. Please help us to help you.


    Give a man a fish:  <%-{-{-{-<