http://www.perlmonks.org?node_id=606172


in reply to Variable Scoping in Perl: the basics

Simply fabulous explanation on scoping.