in reply to How we can link/access the variables of different module in main script without defining variable as global.. ??
Variable Scoping in Perl: the basics