If you use global variables instead of lexically defined ones you have the possbility to access vars of another package (=namespace) via ::-notation. You then can access the "Paul"-value of friends.pm's hash
%friends for instance with
print $friends::friends{"Paul"}