in reply to Returning information from BEGIN

In your case, you can simply
use lib "$ENV{SM}/../bin";
Since, per perlmod, use lib MODULE qw( ) is the same as
BEGIN { require MODULE; import ( ) }