http://qs321.pair.com?node_id=582715


in reply to Interview Prepration

RE: local vs. my

local = dynamic scoping:

local my be used to limit the scope of a variable to a specific subroutine and all subroutines called from it.

my = lexical scoping:

my defines a scope that is limited to a specific subroutine, excluding those called from within it.