in reply to Re: Combining Files using Hash
in thread Combining Files using Hash

Hi Ken,

I tried using your way to output the result. However, it shows "Can't call method "getline" on an undefined value at reformat_rpt.pl". What does this mean?

Thanks

Replies are listed 'Best First'.
Re^3: Combining Files using Hash
by kcott (Archbishop) on Sep 05, 2017 at 07:20 UTC

    Please take a look at the "How do I post a question effectively?" guidelines.

    Posting the error message, without showing the code that generated it, is completely pointless. All anyone can do is guess! My guess is that you wrote code like this:

    $ perl -e 'use Text::CSV; my $csv; $csv->getline' Can't call method "getline" on an undefined value at -e line 1.

    Possibly a very poor guess, but at least I've replicated your reported error message and shown the code that caused it.

    — Ken