#======================================= # First.pm package First; use strict; use warnings; use Second; use Exporter; our @EXPORT_OK = qw(first_method); sub first_method { print "Inside first_method\n"; } #=================================================== # Second.pm package Second; use strict; use warnings; use First qw(first_method); sub second_method { print "Inside second_method\n"; first_method(); } #===================================================