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


in reply to Re: How scoping works in If statements?
in thread How scoping works in If statements?

That still doesn't address the underlying scoping issue, though.
use strict; use warnings; my $x = (0) ? 5 : undef; my $x = 42; __END__ "my" variable $x masks earlier declaration in same scope

---
It's all fine and dandy until someone has to look at the code.