Variables declared using the 'my' keyword reside only within that block scope in which they get declared. Such variables do not get inherited, and the functions do not get visibility when called in that block. Again, when the variables defined as 'local' remain visible in that block. They have visibility in functions when called from that particular block.