our @Export = ( %credentials ); our %credentials = ( User => 'Joe', Password => 'Secret123' ...); # or: (User => $User, Password => $Password ...); if you want to still define the scalars