http://www.perlmonks.org?node_id=1005587


in reply to Re^8: Reading Excel file in perl
in thread Reading Excel file in perl

Hello Pauler,

I don’t really understand what this code is trying to do, so I’ll just offer some observations:

  1. The code as given does not compile. This line:

    print "OKAY: found the column as "class"\n";

    needs to be:

    print "OKAY: found the column as \"class\"\n";

    with the inner double-quote characters backslashed.

  2. You should always — yes, always! — begin each script with:

    use strict; use warnings;

    and never comment them out again!

  3. I suspect the script’s main problem is with the next statement on the 6th-last line. This ends the current iteration of the innermost loop, but as it’s the last statement within that loop, it currently does nothing. Perhaps you meant last? Or next LABEL; where LABEL refers back to a previous (i.e., outer) loop? See next and last in Perl documentation.

Hope that helps,

Athanasius <°(((><contra mundum