in reply to global vars

use Exporter, see perldoc Exporter.
Boris