in reply to wants to export global variable

Do you mean environment variables or Perl variables?
Sorry if my advice was wrong.