Subroutine definitions in Perl are always package-global — there is no such thing as nested subroutine definitions. Later definitions (with the same name) simply override earlier ones ("use warnings" would've told you, btw, that myfunction_two is redefined).
In reply to Re: Scope of subroutines with same name
by almut
in thread Scope of subroutines with same name
by atemon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |