Perl version is 5.26.1 Background : We have migrated our machines recently from SLES11 to SLES12.
Error : Can't export symbol: at File/Slurp.pm line 10.
The issue happens randomly and only for one specific file which we are reading. The same script is working for other files. The script which is using the File/Slurp module is working for all cases when we tried running it against multiple files.
Current issue is that in my module, the error occurs at the point where File/Slurp module is included at the beginning of the file.
use File::Slurp;
Line 10 of File::Slurp is --> use Fcntl qw( :DEFAULT ) ;
I tried running with debug options and prints but it doesnt seem to help me in figuring out the problem and check the CPAN documentation but couldnt find any information which would be of help to proceed further on this problem.
Can anyone suggest or give pointers on how i can proceed on this.
The issue is very random. like 1 time out of 10 runs it gives the error.
Perl CPAN module Slurp content
package File::Slurp;
use 5.6.2 ;
use strict;
use warnings ;
use Carp ;
use Exporter ;
use Fcntl qw( :DEFAULT ) ;