Subject: | Export fails after File::Slurp module loaded |
use strict;
use File::Slurp;
# if we comment this line above, no errors occurs
package Bcheck;
use Acheck qw/check/;
1;
package Acheck;
use Bcheck;
use Exporter;
use vars qw/@ISA @EXPORT $AUTOLOAD/;
@ISA = qw/Exporter/;
@EXPORT = qw/check/;
sub check {
print "\nYep!\n";
}
1;
use Acheck;
print $File::Slurp::VERSION;
# 9999.16 error: "check" is not exported by the Acheck module