in reply to 'use strict' and sharing globals between files

test1.pl requires test2.pl, so test2.pl "runs" in test1.pl's namespace. In that context, $name is declared.

Or, look at it another way: test2.pl isn't run without test1.pl's context, and doesn't necessarily compile without it either.

-QM
--
Quantum Mechanics: The dreams stuff is made of