require '/tmp/b'; print $x; # 3 # assuming /tmp/b has $x=3; in it