in reply to Re: Find data point generating Error in Perl code ( fatal warnings)
in thread Find data point generating Error in Perl code

I'm trying to implement what you posted but I'm pretty lost: what is "$fake"? what is this code supposed to do? Thanks for all your help!
  • Comment on Re^2: Find data point generating Error in Perl code ( fatal warnings)

Replies are listed 'Best First'.
Re^3: Find data point generating Error in Perl code ( fatal warnings)
by Anonymous Monk on Mar 17, 2015 at 23:55 UTC

    I'm trying to implement what you posted but I'm pretty lost: what is "$fake"? what is this code supposed to do? Thanks for all your help!

    $fake is a filehandle , there is no physical file, its an in-memory file, so I called it $fake

    What this code does is demonstrate how to trap warnings by making them fatal, so that you can print out the current line of the file

    It does this by promoting warn to die which is caught with eval

    Its an answer to your question