in reply to Dynamically name the variable and get it's value from Module

It should be

$Mailer::file

Update: Forget my reply. I misread the code and the question.