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


in reply to Re^3: Extracting DNC issues
in thread Extracting DNC issues

Yes, so that was probably the issue I was having. DNC isnt a column until we create it, so it should be an empty string unless the current number doesn't exist in combined numbers. Isn't it in the while loop though, the ending bracket for while loop is after that statement

Replies are listed 'Best First'.
Re^5: Extracting DNC issues
by chromatic (Archbishop) on Oct 10, 2023 at 00:31 UTC
    Isn't it in the while loop though

    Not in the code you posted:

    my $dnc_col = ''; while (my $row = $csv->getline($input))

    Unless I misunderstand your intention, I think you should swap the order of these two lines.


    Improve your skills with Modern Perl: the free book.