http://www.perlmonks.org?node_id=656301


in reply to Duh. 'my' scope in if else blocks.

I noticed this because I was running with use warnings, something I don't normally do.

What warning did you get? I am on 5.8.8, too, and there is no warning.

Or did you notice the absence of a warning you expected? But if you expected $t to be out of scope, that should have been a compile error (because of use strict) rather than a warning.