Help for this page

Select Code to Download


  1. or download this
    use ModuleA qw( function );
    use ModuleB qw( operate=function );
    function(); # calls ModuleA::function()
    operate();  # calls ModuleB::function()
    
  2. or download this
    use ModuleB qw( function );
    BEGIN { *operate= \&function; undef \&function }
    use ModuleA qw( function );