in reply to Scope of subroutines with same name
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).
|
|---|