https://mamchenkov.net/wordpress/2008/12/12/perl-vs-php-variable-scoping/
Perl vs. PHP : variable scoping