use MAS::Global; ... if ( $something_irrelevant ){ require 'MAS::Global'; }